ACE  6.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
Env_Value_T.h File Reference
#include "ace/Global_Macros.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/Copy_Disabled.h"
#include "ace/Env_Value_T.inl"
#include "ace/Env_Value_T.cpp"

Classes

class  ACE_Env_Value< T >
 Environment Variable Value. More...
 

Functions

template<class T >
void ACE_Convert (const ACE_TCHAR *s, T &t)
 Function to convert a string s into type T. More...
 
template<>
void ACE_Convert (const ACE_TCHAR *s, ACE_TCHAR *&v)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, const ACE_TCHAR *&v)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, short &si)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, u_short &us)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, u_int &i)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, long &l)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, int &i)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, u_long &ul)
 
template<>
void ACE_Convert (const ACE_TCHAR *s, double &d)
 

Detailed Description

Id:
Env_Value_T.h 92712 2010-11-25 12:22:13Z johnnyw

Template to encapsulate getting a value from an environment variable and using a supplied default value if not in the environment.

Author
Chris Cleeland (derived from work by Carlos O'Ryan)

Function Documentation

template<class T >
void ACE_Convert ( const ACE_TCHAR s,
T &  t 
)
inline

Function to convert a string s into type T.

template<>
void ACE_Convert ( const ACE_TCHAR s,
ACE_TCHAR *&  v 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
const ACE_TCHAR *&  v 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
short &  si 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
u_short &  us 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
u_int &  i 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
long &  l 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
int &  i 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
u_long &  ul 
)
inline
template<>
void ACE_Convert ( const ACE_TCHAR s,
double &  d 
)
inline