|
ADTF Display Toolbox
|
Template class enables the loading and storing of runtime configuration data. More...
Public Member Functions | |
| tResult | SaveRuntimeConfigFile () |
| Saves all properties to the file configured with adtf-property runtime_config_file_path. More... | |
| tResult | LoadRuntimeConfigFile () |
| Loads all properties from the file configured with adtf-property runtime_config_file_path. More... | |
Protected Member Functions | |
| virtual tResult | SaveConfiguration (adtf::base::IConfiguration *pRuntimeConfig)=0 |
| Callback to be implemented by user of runtime_configuration. More... | |
| virtual tResult | LoadConfiguration (adtf::base::IConfiguration *pRuntimeConfig)=0 |
| Callback to be implemented by user of runtime_configuration. More... | |
Protected Attributes | |
| adtf::base::property_variable< adtf_util::cFilename > | m_strConfigFile |
| CE property_variable storing path of runtime configuration file. | |
| cRuntimeConfigFile | m_oRuntimeConfig |
| actual runtime configuration | |
Private Member Functions | |
| adtf_util::cString | GetConfigFile () |
| Getter for path of configuration file. More... | |
Template class enables the loading and storing of runtime configuration data.
Typlically a service or filter would inherit from runtime_configuration<T>. The filter/service will then inherit a property 'runtime_config_file_path'. This property can be used to configure the path of the runtime configuration file by the CE.
A call to SaveRuntimeConfigFile() will store all properties to the runtime configuration file A call to LoadRuntimeConfigFile() will load all properties from the runtime configuration file
| T | enables a runtime_configuration to inherit from some other class |
Definition at line 123 of file runtimeconfig.h.
|
private |
Getter for path of configuration file.
Definition at line 203 of file runtimeconfig.h.
|
protectedpure virtual |
Callback to be implemented by user of runtime_configuration.
Implementation has to get all properties from pRuntimeConfig (contains all loaded properties from runtime configuration file)
| [in] | pRuntimeConfig | IConfiguration to read properties from |
Implements IRuntimeConfigurationLoadSave.
| tResult LoadRuntimeConfigFile |
Loads all properties from the file configured with adtf-property runtime_config_file_path.
Definition at line 231 of file runtimeconfig.h.
|
protectedpure virtual |
Callback to be implemented by user of runtime_configuration.
Implementation has to add all properties to be written to runtime configuration file to pRuntimeConfig
| [out] | pRuntimeConfig | IConfiguration to store properties to |
Implements IRuntimeConfigurationLoadSave.
| tResult SaveRuntimeConfigFile |
Saves all properties to the file configured with adtf-property runtime_config_file_path.
Definition at line 209 of file runtimeconfig.h.