#include <AnyConfig.h>
Inheritance diagram for AnyConfig::AcEnvConfig::
Public Methods | |
AcEnvConfig () | |
Constructor method. More... | |
virtual | ~AcEnvConfig () |
Destructor method. More... | |
virtual void | display () |
Mostly for debugging purposes, write out the configuration to stdout. More... | |
virtual bool | getSectionStr (const char *pSection, const char *pKey, CString &rValue) |
Like getStr() but can fetch keys from another section than the current one. More... | |
virtual bool | getStr (const char *pKey, CString &rValue) |
Retrieve a string from the configuration for the specified key. More... | |
virtual bool | initRequired () |
Returns true if the derived AcConfiguration requires to be initialized. More... | |
virtual bool | keyExists (const char *pKey) |
Check if a given key exists. More... | |
virtual void | makeKey (const char *pKey, CString &secKey) |
Make a key to look for in the environment. More... | |
virtual void | setSectionStr (const char *pSection, const char *pKey, const char *pValue) |
Like setStr() but can set keys in another section than the current one. More... | |
virtual void | setStr (const char *pKey, const char *pValue) |
Set the configuration item to the passed string value. More... | |
Private Methods | |
void | ConstructorInclude () |
Method which must be called first in a constructor. More... | |
void | DestructorInclude () |
Method which must be called first in a destructor. More... |
The rule is simple, the environment key should be section_key or just key if sections aren't used.
|
Constructor method.
|
|
Destructor method.
|
|
Method which must be called first in a constructor.
Reimplemented from AnyConfig::AcWriteableConfig. |
|
Method which must be called first in a destructor.
Reimplemented from AnyConfig::AcWriteableConfig. |
|
Mostly for debugging purposes, write out the configuration to stdout.
Reimplemented from AnyConfig::AcConfiguration. |
|
Like getStr() but can fetch keys from another section than the current one. The default implementation just pushes _currentSection on stack, replaces it with the supplied section and calls the regular getStr() function.
Reimplemented from AnyConfig::AcConfiguration. |
|
Retrieve a string from the configuration for the specified key.
Reimplemented from AnyConfig::AcConfiguration. |
|
Returns true if the derived AcConfiguration requires to be initialized. See the initialize() function for the various derived classes for more details. Note that this function must return false once the initialization has been done once. Reimplemented from AnyConfig::AcConfiguration. |
|
Check if a given key exists.
Reimplemented from AnyConfig::AcConfiguration. |
|
Make a key to look for in the environment. If the current section is not an empty string, makes a new string by concatenating the current section string, an underscore and the supplied key. Otherwise just uses the supplied key.
|
|
Like setStr() but can set keys in another section than the current one. The default implementation just pushes _currentSection on stack, replaces it with the supplied section and calls the regular setStr() function.
Reimplemented from AnyConfig::AcWriteableConfig. |
|
Set the configuration item to the passed string value.
Reimplemented from AnyConfig::AcWriteableConfig. |