#include <AnyConfig.h>
Inheritance diagram for AnyConfig::AcRegConfig::
Public Methods | |
AcRegConfig () | |
Constructor method. More... | |
virtual | ~AcRegConfig () |
Destructor method. More... | |
virtual bool | copyTo (AcWriteableConfig *pWriteableConfig) |
Copy this configuration to another configuration. More... | |
virtual void | display () |
Mostly for debugging purposes, display the configuration. 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 | initialize (AcConfiguration &parentConfig) |
Not used with AcRegConfig, use the HKEY overloaded function instead. More... | |
virtual bool | initialize (HKEY hKey, AcConfiguration &parentConfig) |
Initialize a registry configuration class. 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... | |
Private Methods | |
void | copyBranch (HKEY hKey) |
Copy the keys. More... | |
void | copyLeaves (HKEY hKey) |
Copy the values. More... | |
void | copyTree (HKEY hKey) |
This tree has leaves growing on its roots... More... | |
bool | initialize (HKEY hKey, const char *keyPath) |
Recursively open subKeys until we're there. More... | |
void | ConstructorInclude () |
Method which must be called first in a constructor. More... | |
void | DestructorInclude () |
Method which must be called first in a destructor. More... | |
Private Attributes | |
AcMemConfig | _copy |
If you don't know what this could mean you are a lucky person. Otherwise, use it if you have to, write a better implementation if you actually like this.
|
Constructor method.
|
|
Destructor method.
|
|
Method which must be called first in a constructor.
Reimplemented from AnyConfig::AcConfiguration. |
|
Method which must be called first in a destructor.
Reimplemented from AnyConfig::AcConfiguration. |
|
Copy the keys.
|
|
Copy the values.
|
|
Copy this configuration to another configuration.
This method is specifically handy when the source configuration comes from a text file and the destination configuration is AcMemConfig, which offers much more functionality. Along the same lines, this method can be used to save an AcMemConfig in a file. If the target configuration already has filled-in items, the result of this operation is undefined. Some derived classes may end up containing a merged result of the old and the new values (AcMemConfig, AcEnvConfig), other may only contain the copied values (like AcFileConfig).
Reimplemented from AnyConfig::AcConfiguration. |
|
This tree has leaves growing on its roots...
|
|
Mostly for debugging purposes, display the configuration.
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. |
|
Initialize a registry configuration class. AcRegConfig is implemented as a read-only configuration. The actual contents is kept in-memory in a AcMemConfig.
The parent configuration must have a REGISTRYKEY item. |
|
Not used with AcRegConfig, use the HKEY overloaded function instead.
Reimplemented from AnyConfig::AcConfiguration. |
|
Recursively open subKeys until we're there.
|
|
Check if a given key exists.
Reimplemented from AnyConfig::AcConfiguration. |