#include <Env_Value_T.h>
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_TCHAR * | varname (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_TCHAR * | varname_ |
T | value_ |
Reads a variable from the user environment, providing a default value.
ACE_INLINE ACE_Env_Value< T >::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_INLINE ACE_Env_Value< T >::ACE_Env_Value | ( | const ACE_TCHAR * | varname, | |
const T & | vardefault | |||
) | [inline] |
Constructor that calls <open>.
ACE_INLINE ACE_Env_Value< T >::~ACE_Env_Value | ( | void | ) | [inline] |
Destroy the value.
ACE_Env_Value< T >::ACE_Env_Value | ( | const ACE_Env_Value< T > & | ) | [private] |
Disallow copying and assignment.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Env_Value< T >::operator T | ( | void | ) | [inline] |
Returns the value as type T.
ACE_INLINE void ACE_Env_Value< T >::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_INLINE const ACE_TCHAR * ACE_Env_Value< T >::varname | ( | void | ) | const [inline] |
Returns the name of the variable being tracked.
ACE_Env_Value<T> ACE_Env_Value< T >::operator= | ( | const ACE_Env_Value< T > & | ) | [private] |
ACE_INLINE void ACE_Env_Value< T >::fetch_value | ( | void | ) | [inline, private] |
const ACE_TCHAR* ACE_Env_Value< T >::varname_ [private] |
T ACE_Env_Value< T >::value_ [private] |