Base class for the configuration structures. More...
#include <configurationBase.hpp>
Public Member Functions | |
ConfigurationBase (const char *sectionName_, const char *logParent_, const char *logName_) | |
virtual | ~ConfigurationBase () |
const std::string & | sectionName () const |
The display string (name) for the configuration section. More... | |
const std::string & | logPrefix () const |
virtual bool | parse (const ConfigurationNode &cfgTree, const std::string &node, const module::ModulesDirectory *modules)=0 |
Parse the configuration section. More... | |
virtual void | setCanonicalPathes (const std::string &) |
virtual bool | check () const |
virtual void | print (std::ostream &os, size_t indent=0) const =0 |
Private Attributes | |
std::string | m_sectionName |
std::string | m_logPrefix |
Base class for the configuration structures.
|
inline |
Class constructor.
[in] | sectionName_ | the name that will be displayed for this configuration section in messages (log, print ...) It has no other processing purpose |
[in] | logParent_ | the logging prefix of the parent. |
[in] | logName_ | the logging name of this section. Combined with the logParent parameter will form the whole logging prefix for of the section. |
|
inlinevirtual |
|
inlinevirtual |
Check if the server configuration makes sense
Be aware that this function does NOT test if the configuration can be used. It only tests if it MAY be valid. This function will log errors / warnings
Reimplemented in _Wolframe::config::ServiceBanner, _Wolframe::config::ServiceConfiguration, _Wolframe::log::LoggerConfiguration, _Wolframe::serialize::DescriptiveConfiguration, _Wolframe::net::Configuration, _Wolframe::AAAA::AAAAconfiguration, _Wolframe::db::DBproviderConfig, and _Wolframe::proc::ProcProviderConfig.
|
inline |
The prefix for logging messages for this configuration section
|
pure virtual |
Parse the configuration section.
[in] | pt | property tree node |
[in] | node | the label of the node. It should be the same (case insensitive) as it->first |
Implemented in _Wolframe::config::ServiceBanner, _Wolframe::config::ServiceConfiguration, _Wolframe::log::LoggerConfiguration, _Wolframe::serialize::DescriptiveConfiguration, _Wolframe::net::Configuration, _Wolframe::AAAA::AAAAconfiguration, _Wolframe::db::DBproviderConfig, and _Wolframe::proc::ProcProviderConfig.
|
pure virtual |
Print the configuration This function is supposed to print the running configuration, this means all the configuration parameters, not only those that were set in the configuration file.
[in] | os | stream to use for printing |
[in] | indent | print indented with this number of spaces |
Implemented in _Wolframe::config::ServiceBanner, _Wolframe::config::ServiceConfiguration, _Wolframe::log::LoggerConfiguration, _Wolframe::serialize::DescriptiveConfiguration, _Wolframe::net::Configuration, _Wolframe::AAAA::AAAAconfiguration, _Wolframe::db::DBproviderConfig, and _Wolframe::proc::ProcProviderConfig.
|
inline |
The display string (name) for the configuration section.
|
inlinevirtual |
Set the pathes in the configuration to absolute values
[in] | refPath | use this path as reference when computing the absolute pathes |
Reimplemented in _Wolframe::config::ServiceConfiguration, _Wolframe::log::LoggerConfiguration, _Wolframe::net::Configuration, _Wolframe::AAAA::AAAAconfiguration, _Wolframe::db::DBproviderConfig, and _Wolframe::proc::ProcProviderConfig.
|
private |
|
private |
Copyright © 2014 - Project Wolframe - All Rights Reserved