|
ifw-ccf
3.0.0-pre2
|
Global setup class for CCF applications. An Initialisation Setup, containing all the parameters shall be loaded before using the class. More...
#include <setup.hpp>
Public Member Functions | |
| Setup () | |
| ~Setup () | |
| elt::configng::CiiConfigInstanceNode & | GetNode (const std::vector< std::string > &names) |
| Get the reference to a specific node in the Installed Setup. More... | |
| elt::configng::CiiConfigInstanceNode & | GetStagingNode (const std::vector< std::string > &names) |
| Get the reference to a specific node in the Staging Setup. More... | |
| elt::configng::CiiConfigInstanceNode & | GetNode (const elt::configng::CiiConfigDocument *doc, const std::vector< std::string > &names) |
| Get the reference to a specific node in the referenced CII Cfg Service doc object. More... | |
| const std::string & | GetRootNodeName () const |
| Return the name of the setup document root node name. More... | |
| template<class TYPE > | |
| bool | HasPar (const std::vector< std::string > &names, TYPE &value) |
| template<class TYPE > | |
| bool | HasStagingPar (const std::vector< std::string > &names, TYPE &value) |
| bool | HasStagingNodeKey (const std::string &name) |
| Probe if a given parameter is defined among the Setup Staging Parameters. More... | |
| template<class TYPE > | |
| bool | HasStagingParKey (const std::string &name, TYPE &value) |
| void | ResetStagingSetup () |
| Reset the internal Staging Setup. More... | |
| template<class TYPE > | |
| void | AddStagingPar (const std::string &name, const TYPE value) |
| const std::map< std::string, std::string > & | GetCmdStagingPars () |
| Return list of staging pars, provided via the Setup command. More... | |
| void | GetPars (std::map< std::string, std::string > &pars, const std::string &pattern="*") |
| Return map with all parameters in the object. Staging pars take precedence. More... | |
| template<class TYPE > | |
| TYPE | GetValue (const std::vector< std::string > &names) |
| Get value from either the 1) Staging Setup, or 2) Installed Setup. More... | |
| template<class TYPE > | |
| TYPE | GetValueKey (const std::string &name) |
| Get value from either the 1) Staging Setup, or 2) Installed Setup from the SPF key. More... | |
| void | LoadStagingSetup (const std::string &filename) |
| Load a Setup File into the Staging Setup object. More... | |
| void | AcceptStagingSetup () |
| Merge the parameters in the Staging Setup into the Installed Setup set of parameters. More... | |
| std::string | SetupFileToString () const |
| Return string representation of the setup file loaded. More... | |
Public Member Functions inherited from ccf::Base | |
| Base () | |
| ~Base () | |
| const std::string & | GetClassName () const |
| Return the allocated name of the class. More... | |
| log4cplus::Logger & | Loggger () |
| Return reference to logger used in this context. More... | |
Static Public Member Functions | |
| static Setup & | Instance () |
| Return reference to unique instance of the application class. More... | |
Static Public Member Functions inherited from ccf::Base | |
| static ccf::mptk::Manager & | Mptk () |
| Return reference to internal MPTK instance (singleton). More... | |
| static void | SetLogLevel (const ccf::LogLevel log_level) |
| Set the log level. More... | |
| static ccf::LogLevel | GetLogLevel () |
| Return the current CCF log level. More... | |
Static Public Attributes | |
| static Setup * | s_instance = nullptr |
| Singleton instance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ccf::Base | |
| void | SetClassName (const std::string &class_name) |
| Set the name of the class in question. More... | |
| void | SetLogger (log4cplus::Logger &logger) |
| Set reference to logger used in this context. More... | |
Protected Attributes inherited from ccf::Base | |
| log4cplus::Logger | m_logger |
Global setup class for CCF applications. An Initialisation Setup, containing all the parameters shall be loaded before using the class.
| ccf::common::Setup::Setup | ( | ) |
| ccf::common::Setup::~Setup | ( | ) |
| void ccf::common::Setup::AcceptStagingSetup | ( | ) |
|
inline |
Add a Staging Setup Parameter in the object given on SPF format ("<key el 1>.<key el 2>. ...").
| const std::map< std::string, std::string > & ccf::common::Setup::GetCmdStagingPars | ( | ) |
Return list of staging pars, provided via the Setup command.
| elt::configng::CiiConfigInstanceNode & ccf::common::Setup::GetNode | ( | const elt::configng::CiiConfigDocument * | doc, |
| const std::vector< std::string > & | names | ||
| ) |
Get the reference to a specific node in the referenced CII Cfg Service doc object.
| elt::configng::CiiConfigInstanceNode & ccf::common::Setup::GetNode | ( | const std::vector< std::string > & | names | ) |
Get the reference to a specific node in the Installed Setup.
| void ccf::common::Setup::GetPars | ( | std::map< std::string, std::string > & | pars, |
| const std::string & | pattern = "*" |
||
| ) |
Return map with all parameters in the object. Staging pars take precedence.
| const std::string & ccf::common::Setup::GetRootNodeName | ( | ) | const |
Return the name of the setup document root node name.
| elt::configng::CiiConfigInstanceNode & ccf::common::Setup::GetStagingNode | ( | const std::vector< std::string > & | names | ) |
Get the reference to a specific node in the Staging Setup.
|
inline |
|
inline |
|
inline |
Probe if a given parameter is defined in the set. Return true if yes and set the value to the value of the parameter.
| bool ccf::common::Setup::HasStagingNodeKey | ( | const std::string & | name | ) |
Probe if a given parameter is defined among the Setup Staging Parameters.
|
inline |
Probe if a given parameter is defined among the Setup Staging Parameters. Return true if yes and set the value to the value of the parameter.
|
inline |
Probe if a given parameter is defined among the Setup Staging Parameters. Return true if yes and set the value to the value of the parameter.
|
static |
Return reference to unique instance of the application class.
| void ccf::common::Setup::LoadStagingSetup | ( | const std::string & | filename | ) |
| void ccf::common::Setup::ResetStagingSetup | ( | ) |
Reset the internal Staging Setup.
| std::string ccf::common::Setup::SetupFileToString | ( | ) | const |
Return string representation of the setup file loaded.
|
static |
Singleton instance.