#include "ace/Global_Macros.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/Env_Value_T.inl"
#include "ace/Env_Value_T.cpp"
Include dependency graph for Env_Value_T.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
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 . | |
template<> | |
ACE_END_VERSIONED_NAMESPACE_DECL ACE_BEGIN_VERSIONED_NAMESPACE_DECL 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) |
Template to encapsulate getting a value from an environment variable and using a supplied default value if not in the environment.
Definition in file Env_Value_T.h.
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
double & | d | |||
) | [inline] |
Definition at line 143 of file Env_Value_T.h.
References ACE_OS::strtod().
00144 { 00145 d = ACE_OS::strtod (s, 0); 00146 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
u_long & | ul | |||
) | [inline] |
Definition at line 137 of file Env_Value_T.h.
References ACE_OS::strtoul().
00138 { 00139 ul = ACE_OS::strtoul (s, 0, 10); 00140 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
int & | i | |||
) | [inline] |
Definition at line 131 of file Env_Value_T.h.
References ACE_OS::strtol().
00132 { 00133 i = static_cast<int> (ACE_OS::strtol (s, 0, 10)); 00134 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
long & | l | |||
) | [inline] |
Definition at line 125 of file Env_Value_T.h.
References ACE_OS::strtol().
00126 { 00127 l = ACE_OS::strtol (s, 0, 10); 00128 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
u_int & | i | |||
) | [inline] |
Definition at line 119 of file Env_Value_T.h.
References ACE_OS::strtol().
00120 { 00121 i = static_cast<u_int> (ACE_OS::strtol (s, 0, 10)); 00122 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
u_short & | us | |||
) | [inline] |
Definition at line 113 of file Env_Value_T.h.
References ACE_OS::strtol().
00114 { 00115 us = static_cast <u_short> (ACE_OS::strtol (s, 0, 10)); 00116 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
short & | si | |||
) | [inline] |
Definition at line 107 of file Env_Value_T.h.
References ACE_OS::strtol().
00108 { 00109 si = static_cast<short> (ACE_OS::strtol (s, 0, 10)); 00110 }
void ACE_Convert | ( | const ACE_TCHAR * | s, | |
T & | t | |||
) | [inline] |
Function to convert a string s into type T
.
Definition at line 154 of file Env_Value_T.h.
Referenced by ACE_Env_Value< T >::fetch_value().