|
rad 6.2.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 & | GetSmScxmlAppendFilename () 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. | |
This class provide access to the following application read-only configuration information:
| server::Config::Config | ( | ) |
Default constructor.
Initialize application configuration attributes by
|
virtual |
Default destructor.
|
delete |
| const std::string & server::Config::GetConfigFilename | ( | ) | const |
| const std::string & server::Config::GetDbEndpoint | ( | ) | const |
| const timeval server::Config::GetDbTimeout | ( | ) | const |
| const std::string & server::Config::GetLogLevel | ( | ) | const |
| const std::string & server::Config::GetLogProperties | ( | ) | const |
| const std::string & server::Config::GetMsgReplierEndpoint | ( | ) | const |
The format is "tcp://ipaddr:port", for example: "tcp://127.0.0.1:5577"
| const std::string & server::Config::GetMsgSubEndpoint | ( | ) | const |
| const std::string & server::Config::GetProcName | ( | ) | const |
| const std::string & server::Config::GetSmScxmlAppendFilename | ( | ) | const |
| const std::string & server::Config::GetSmScxmlFilename | ( | ) | const |
| void server::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 server::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. |