Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ACE_Env_Value< T > Class Template Reference

Environment Variable Value. More...

#include <Env_Value_T.h>

Collaboration diagram for ACE_Env_Value< T >:

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

 ACE_Env_Value (const ACE_Env_Value< T > &)
 Disallow copying and assignment.
ACE_Env_Value< T > operator= (const ACE_Env_Value< T > &)
void fetch_value (void)

Private Attributes

const ACE_TCHARvarname_
value_

Detailed Description

template<class T>
class ACE_Env_Value< T >

Environment Variable Value.

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


Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Env_Value< T >::ACE_Env_Value void   ) 
 

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

template<class T>
ACE_INLINE ACE_Env_Value< T >::ACE_Env_Value const ACE_TCHAR varname,
const T &  vardefault
 

Constructor that calls <open>.

template<class T>
ACE_INLINE ACE_Env_Value< T >::~ACE_Env_Value void   ) 
 

Destroy the value.

template<class T>
ACE_Env_Value< T >::ACE_Env_Value const ACE_Env_Value< T > &   )  [private]
 

Disallow copying and assignment.


Member Function Documentation

template<class T>
ACE_INLINE void ACE_Env_Value< T >::fetch_value void   )  [private]
 

template<class T>
ACE_INLINE void ACE_Env_Value< T >::open const ACE_TCHAR varname,
const T &  defval
 

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

template<class T>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Env_Value< T >::operator T void   ) 
 

Returns the value as type T.

template<class T>
ACE_Env_Value<T> ACE_Env_Value< T >::operator= const ACE_Env_Value< T > &   )  [private]
 

template<class T>
ACE_INLINE const ACE_TCHAR * ACE_Env_Value< T >::varname void   )  const
 

Returns the name of the variable being tracked.


Member Data Documentation

template<class T>
T ACE_Env_Value< T >::value_ [private]
 

template<class T>
const ACE_TCHAR* ACE_Env_Value< T >::varname_ [private]
 


The documentation for this class was generated from the following files:
Generated on Sun Mar 5 15:39:14 2006 for ACE by  doxygen 1.3.9.1