diff options
Diffstat (limited to 'ACE/apps/JAWS3/jaws3/Options.cpp')
-rw-r--r-- | ACE/apps/JAWS3/jaws3/Options.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ACE/apps/JAWS3/jaws3/Options.cpp b/ACE/apps/JAWS3/jaws3/Options.cpp new file mode 100644 index 00000000000..19c7a40406e --- /dev/null +++ b/ACE/apps/JAWS3/jaws3/Options.cpp @@ -0,0 +1,25 @@ +// $Id$ + +#include "ace/OS_NS_stdlib.h" + +#ifndef JAWS_BUILD_DLL +#define JAWS_BUILD_DLL +#endif /*JAWS_BUILD_DLL*/ + +#include "jaws3/Options.h" + +JAWS_Options::JAWS_Options (void) +{ + this->cf_ = new JAWS_Config_File ("jaws.conf"); +} + +const char * +JAWS_Options::getenv (const char *key) +{ + const char *value = 0; + if (this->cf_ == 0 || this->cf_->find (key, value) < 0) + value = ACE_OS::getenv (key); + + return value; +} + |