rad
2.0.0
|
#include <config.hpp>
Public Member Functions | |
Config () | |
virtual | ~Config () |
bool | ParseOptions (int argc, char *argv[]) |
void | LoadConfig (const std::string &filename="") |
const std::string & | GetMsgReplierEndpoint () const |
const std::string & | GetMsgSubEndpoint () const |
const std::string & | GetDbEndpoint () const |
const timeval | GetDbTimeout () const |
const std::string & | GetSmScxmlFilename () const |
const std::string & | GetConfigFilename () const |
const std::string & | GetProcName () const |
const std::string & | GetLogLevel () const |
const std::string & | GetLogProperties () const |
Config (const Config &)=delete | |
Config & | operator= (const Config &)=delete |
Disable copy constructor. More... | |
Config () | |
virtual | ~Config () |
bool | ParseOptions (int argc, char *argv[]) |
void | LoadConfig (const std::string &filename="") |
const std::string & | GetMsgReplierEndpoint () const |
const std::string & | GetMsgSubEndpoint () const |
const std::string & | GetDbEndpoint () const |
const timeval | GetDbTimeout () const |
const std::string & | GetSmScxmlFilename () const |
const std::string & | GetConfigFilename () const |
const std::string & | GetProcName () const |
const std::string & | GetLogLevel () const |
const std::string & | GetLogProperties () const |
Config (const Config &)=delete | |
Config & | operator= (const Config &)=delete |
Disable copy constructor. More... | |
This class provide access to the following application read-only configuration information:
hello::Config::Config | ( | ) |
Default constructor.
Initialize application configuration attributes by
|
virtual |
Default destructor.
|
delete |
hello::Config::Config | ( | ) |
|
virtual |
|
delete |
const std::string & hello::Config::GetConfigFilename | ( | ) | const |
const std::string& hello::Config::GetConfigFilename | ( | ) | const |
const std::string& hello::Config::GetDbEndpoint | ( | ) | const |
const std::string & hello::Config::GetDbEndpoint | ( | ) | const |
const timeval hello::Config::GetDbTimeout | ( | ) | const |
const timeval hello::Config::GetDbTimeout | ( | ) | const |
const std::string & hello::Config::GetLogLevel | ( | ) | const |
const std::string& hello::Config::GetLogLevel | ( | ) | const |
const std::string & hello::Config::GetLogProperties | ( | ) | const |
const std::string& hello::Config::GetLogProperties | ( | ) | const |
const std::string & hello::Config::GetMsgReplierEndpoint | ( | ) | const |
const std::string& hello::Config::GetMsgReplierEndpoint | ( | ) | const |
const std::string& hello::Config::GetMsgSubEndpoint | ( | ) | const |
const std::string & hello::Config::GetMsgSubEndpoint | ( | ) | const |
const std::string & hello::Config::GetProcName | ( | ) | const |
const std::string& hello::Config::GetProcName | ( | ) | const |
const std::string & hello::Config::GetSmScxmlFilename | ( | ) | const |
const std::string& hello::Config::GetSmScxmlFilename | ( | ) | const |
void hello::Config::LoadConfig | ( | const std::string & | filename = "" | ) |
void hello::Config::LoadConfig | ( | const std::string & | filename = "" | ) |
This method load from a configuration file the application configuration overriding the initialization done in the constructor and the command line options.
[in] | filename | Application configuration filename. |
bool hello::Config::ParseOptions | ( | int | argc, |
char * | argv[] | ||
) |
This method parses the command line parameters overriding the initialization done in the constructor.
[in] | argc | Number of command line options. |
[in] | argv | Pointer to the array of command line options. |
bool hello::Config::ParseOptions | ( | int | argc, |
char * | argv[] | ||
) |