Class for loading, parsing, modifying and interpreting application configuration files.
More...
#include <loader/Loader.h>
|
typedef std::map< std::string, std::string > | Context |
|
Class for loading, parsing, modifying and interpreting application configuration files.
◆ Context
typedef std::map<std::string, std::string> Context |
◆ ConfigurationLoader()
The constructor.
- Parameters
-
[in] | unknownTagWarning | Flag controlling if warning messages are shown when encountering unknown tags. |
◆ registerPreparePlugin()
Register a prepare plugin.
They get inserted in a list of prepare plugins that is sorted ascending by the order returned by the call to ConfigurationPreparePlugin::getOrder() (smallest order first).
- Parameters
-
◆ registerLoaderPlugin()
void registerLoaderPlugin |
( |
const ClassProxy & |
plugin | ) |
|
Register a loader plugin.
These plugins are called whenever their supported tag is found.
- Parameters
-
[in] | plugin | The plugin class description |
◆ prepare()
void prepare |
( |
XMLDom & |
ioXML | ) |
|
Prepare the document.
Prepare plugins are called in the order they appear in the sorted list that is sorted ascending by the order number of each preparer (smallest order first).
- Parameters
-
[in,out] | ioXML | The xml document |
◆ load()
void load |
( |
const XMLDom & |
xml | ) |
|
Load/interpret the document.
All loader plugins are called whenever their supported tag is found.
- Parameters
-
◆ getContext()
Get the context of the loader.
The context can be used to store the current state of a plugin. This state can be used by other plugins. e.g. the NamespaceLoader stores the current namespace context, that can be used by the UnitLoader.
The documentation for this class was generated from the following file: