ACE  6.0.6
Public Member Functions | Private Member Functions | Private Attributes
ACE_Env_Value Class Reference

Environment Variable Value. More...

#include <Env_Value_T.h>

Inheritance diagram for ACE_Env_Value:
Inheritance graph
[legend]
Collaboration diagram for ACE_Env_Value:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_Env_Value (void)
 ACE_Env_Value (const ACE_TCHAR *varname, const T &vardefault)
 Constructor that calls open().
 ~ACE_Env_Value (void)
 Destroy the value.
 operator T (void)
 Returns the value as type T.
void open (const ACE_TCHAR *varname, const T &defval)
const ACE_TCHARvarname (void) const
 Returns the name of the variable being tracked.

Private Member Functions

void fetch_value (void)

Private Attributes

const ACE_TCHARvarname_
value_

Detailed Description

Environment Variable Value.

Reads a variable from the user environment, providing a default value.


Constructor & Destructor Documentation

ACE_Env_Value::ACE_Env_Value ( void  ) [inline]

Default constructor which isn't bound to a specific environment variable name or a default value. Before being useful it must open()'d.

ACE_Env_Value::ACE_Env_Value ( const ACE_TCHAR varname,
const T &  vardefault 
) [inline]

Constructor that calls open().

ACE_Env_Value::~ACE_Env_Value ( void  ) [inline]

Destroy the value.


Member Function Documentation

void ACE_Env_Value::fetch_value ( void  ) [inline, private]
void ACE_Env_Value::open ( const ACE_TCHAR varname,
const T &  defval 
) [inline]

The constructor, read varname from the environment, using defval as its value if it is not defined.

ACE_Env_Value::operator T ( void  ) [inline]

Returns the value as type T.

const ACE_TCHAR * ACE_Env_Value::varname ( void  ) const [inline]

Returns the name of the variable being tracked.


Member Data Documentation

T ACE_Env_Value::value_ [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines