|
ADTF Display Toolbox
|
Class is a adtf::base::configuration that allows the storing and loading of all contained properties to/from a xml file. More...
#include <runtimeconfig.h>
Public Member Functions | |
| cRuntimeConfigFile (const adtf::util::cFilename &strConfigFile) | |
| Constructor. | |
| tResult | Load () |
| Loads all properties from the configured xml file and stores it to this instance. | |
| tResult | Save () |
| Saves all properties of this instance to the configured xml file. | |
| tResult | ClearAllProperties () |
Clears all properties currently stored in cRuntimeConfigFile. | |
| tVoid | SetConfigFile (const adtf::util::cFilename &strFilename) |
| Setter for xml config file to load and store runtime configuration. | |
| adtf::util::cFilename | GetConfigFile () |
| Setter for xml config file to load and store runtime configuration. | |
Protected Attributes | |
| adtf::util::cFilename | m_strConfigFile |
| path to the xml file | |
Private Member Functions | |
| tResult | StoreProperty (adtf::util::cString strPrefix, adtf::util::cDOMElement *pConfig) |
| Stores all properties of this instance in DOM pConfig. | |
Class is a adtf::base::configuration that allows the storing and loading of all contained properties to/from a xml file.
Definition at line 87 of file runtimeconfig.h.
|
inline |
Constructor.
| [in] | strConfigFile | xml file to load and store runtime configuration |
Definition at line 99 of file runtimeconfig.h.
References m_strConfigFile.
|
inlinevirtual |
Definition at line 103 of file runtimeconfig.h.
|
inline |
Clears all properties currently stored in cRuntimeConfigFile.
Definition at line 153 of file runtimeconfig.h.
|
inline |
Setter for xml config file to load and store runtime configuration.
Definition at line 178 of file runtimeconfig.h.
References m_strConfigFile.
|
inline |
Loads all properties from the configured xml file and stores it to this instance.
Definition at line 112 of file runtimeconfig.h.
References m_strConfigFile.
|
inline |
Saves all properties of this instance to the configured xml file.
Definition at line 139 of file runtimeconfig.h.
References m_strConfigFile, and StoreProperty().
|
inline |
Setter for xml config file to load and store runtime configuration.
| [in] | strFilename | value to set |
Definition at line 168 of file runtimeconfig.h.
References m_strConfigFile.
|
inlineprivate |
Stores all properties of this instance in DOM pConfig.
| [in] | strPrefix | Prefix under which the properties are stored in DOM. |
| [in] | pConfig | DOM to store data to. |
Definition at line 192 of file runtimeconfig.h.
Referenced by Save().
|
protected |
path to the xml file
Definition at line 91 of file runtimeconfig.h.
Referenced by cRuntimeConfigFile(), GetConfigFile(), Load(), Save(), and SetConfigFile().