basis::environment Class Reference

Provides access to the system's environment variables. More...

#include <environment.h>

Inheritance diagram for basis::environment:
Inheritance graph
[legend]
Collaboration diagram for basis::environment:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static astring get (const astring &variable_name)
 looks up the "variable_name" in the current environment variables.
static bool set (const astring &variable_name, const astring &value)
 < synonym using simpler char pointer.
static basis::un_int system_uptime ()
 < synonym using simpler char pointers.

Detailed Description

Provides access to the system's environment variables.

Definition at line 26 of file environment.h.


Member Function Documentation

astring basis::environment::get ( const astring variable_name  )  [static]

looks up the "variable_name" in the current environment variables.

this returns the value for "variable_name" as it was found in the operating system's environment variables that are defined at this point in time for the user and process. the returned string will be empty if no variable under that name could be found.

Definition at line 19 of file environment.cpp.

bool basis::environment::set ( const astring variable_name,
const astring value 
) [static]

< synonym using simpler char pointer.

adds or creates "variable_name" in the environment. changes the current set of environment variables by adding or modifying the "variable_name". its new value will be "value".

Definition at line 34 of file environment.cpp.

basis::un_int basis::environment::system_uptime (  )  [static]

< synonym using simpler char pointers.

gives the operating system's uptime in a small form that rolls over.

Definition at line 46 of file environment.cpp.

References basis::astring::s().

Referenced by mathematics::chaos::retrain().


The documentation for this class was generated from the following files:
Generated on Sat Jan 28 04:25:25 2012 for hoople2 project by  doxygen 1.6.3