diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1997-12-31 22:37:40 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1997-12-31 22:37:40 +0000 |
commit | cfa8353c086d114acd8bd8bdff3ed3dba8e200b1 (patch) | |
tree | e15b6719d24d79df2127b9928a9d888f95851366 /ace/Env_Value_T.cpp | |
parent | 07e05a5237293863f8e4712fd7a353495a342094 (diff) | |
download | ATCD-cfa8353c086d114acd8bd8bdff3ed3dba8e200b1.tar.gz |
* ace/Env_Value_T.*: Added a new template (ACE_Env_Value) which is
a typesafe encapsulation of environment variables with the ability
to provide a value to be used as a default if the variable isn't
set. An example of its use can be seen in the corresponding test,
tests/Env_Value_Test.cpp.
* tests/Env_Value_Test.cpp: Added test for the new template added
above.
* tests/Makefile: Added new Env_Value_Test test to the Makefile.
Diffstat (limited to 'ace/Env_Value_T.cpp')
-rw-r--r-- | ace/Env_Value_T.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/Env_Value_T.cpp b/ace/Env_Value_T.cpp new file mode 100644 index 00000000000..25a2efed4d1 --- /dev/null +++ b/ace/Env_Value_T.cpp @@ -0,0 +1,12 @@ +// $Id$ + +#if ! defined (__ACE_INLINE__) +#include "ace/Env_Value_T.i" +#endif /* __ACE_INLINE__ */ + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) +template void ACE_Convert(const char*, char*&); +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +#pragma instantiate void ACE_Convert (const char*, char*&) +#endif + |