1 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
3 template <class T> ACE_INLINE
4 ACE_Env_Value<T>::operator T (void)
9 template <class T> ACE_INLINE
10 ACE_Env_Value<T>::ACE_Env_Value (void)
15 template <class T> ACE_INLINE
16 ACE_Env_Value<T>::ACE_Env_Value (const ACE_TCHAR *varname,
24 template <class T> ACE_INLINE void
25 ACE_Env_Value<T>::open (const ACE_TCHAR *varname,
28 this->varname_ = varname;
29 this->value_ = defval;
33 template <class T> ACE_INLINE void
34 ACE_Env_Value<T>::fetch_value (void)
36 #if defined (ACE_WIN32)
37 const ACE_TCHAR *env = ACE_OS::getenv (this->varname_);
39 ACE_Convert (env, value_);
41 char *nenv = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (this->varname_));
43 ACE_Convert (ACE_TEXT_CHAR_TO_TCHAR (nenv), this->value_);
47 template <class T> ACE_INLINE const ACE_TCHAR*
48 ACE_Env_Value<T>::varname (void) const
50 return this->varname_;
53 template <class T> ACE_INLINE
54 ACE_Env_Value<T>::~ACE_Env_Value (void)
58 ACE_END_VERSIONED_NAMESPACE_DECL