|
rad 6.2.0
|
Public Member Functions | |
| MyConfig () | |
| ~MyConfig () override=default | |
| void | ValidateConfig (const std::vector< std::string > &keys, const rad::Config &cfg) const override |
Public Member Functions inherited from rad::Config | |
| Config (const std::string &name=LOGGER_NAME, const std::string &log_level="ERROR") | |
| Config (const Config &cfg) | |
| virtual | ~Config () |
| Config & | operator= (const Config &cfg) |
| const elt::configng::CiiConfigDocument & | GetConfigDoc () const |
| bpo::options_description & | GetOptionsDesc () |
| bpo::variables_map & | GetOptionsMap () |
| const std::string & | GetOldbPrefixAppenderKey () |
| void | SetOldbPrefixAppenderKey (const std::string &key) |
| std::string | BuildOldbPrefix () |
| virtual bool | ParseOptions (int argc, char *argv[]) |
| virtual void | LoadConfig (const std::string &filename="") |
| virtual void | ConfigureLogging (const std::string &filename="") |
| virtual void | ApplyCmdLineOptions () |
| void | CheckConfig () const |
| void | MergeConfig (const elt::configng::CiiConfigDocument &cfg_doc) |
| void | CreateDefaultConfig (const std::string &default_cfg) |
| template<typename T > | |
| void | AddParam (const std::string &key, const T &value) |
| bool | HasParam (const std::string &key) const |
| template<typename T > | |
| T | GetParam (const std::string &key) const |
| template<typename T > | |
| void | SetParam (const std::string &key, const T &value) |
| const std::string | GetConfigAsString () const |
| std::vector< std::string > | SetConfigAsString (const std::string &config) |
| std::string | PrintNode (const elt::configng::CiiConfigInstanceNode &node, const std::string &indentation) const |
| std::string | Print (const elt::configng::CiiConfigInstanceNamespace &instances) const |
| std::string | Print () const |
Public Attributes | |
| const std::string | KEY_CONFIG_MAX_ALT = rad::KEY_CONFIG + "max_alt" |
|
inline |
|
overridedefault |
|
inlineoverridevirtual |
This method allows an application to verify the given configuration before it is merged with the actual/main configuration. In case of invalid parameter, an exception is/should be thrown to stop applying the configuration.
The method can be specialized to verify application specific parameters.
| keys | Parameters to be validated. |
| cfg | Configuration values to be validated. |
Reimplemented from rad::Config.
| const std::string MyConfig::KEY_CONFIG_MAX_ALT = rad::KEY_CONFIG + "max_alt" |