Provides access to the command line options and the configuration parameters stored in the configuration file.
More...
#include <config.hpp>
Provides access to the command line options and the configuration parameters stored in the configuration file.
◆ Config() [1/2]
| ccf::control::Config::Config |
( |
| ) |
|
Default constructor.
Initialize application configuration attributes by
- first use the default constant values defined in the header
- override the constant values with environment variables (if defined)
◆ ~Config()
| ccf::control::Config::~Config |
( |
| ) |
|
|
virtual |
◆ Config() [2/2]
| ccf::control::Config::Config |
( |
const Config & |
| ) |
|
|
delete |
◆ GetConfigFilename()
| const std::string & ccf::control::Config::GetConfigFilename |
( |
| ) |
const |
- Returns
- The application configuration filename.
◆ GetDbEndpoint()
| const std::string & ccf::control::Config::GetDbEndpoint |
( |
| ) |
const |
- Returns
- The IP address and port used to connect to the runtime DB.
◆ GetDbTimeout()
| const timeval ccf::control::Config::GetDbTimeout |
( |
| ) |
const |
- Returns
- The timeout used when communicating to the runtime DB.
◆ GetLogLevel()
| const std::string & ccf::control::Config::GetLogLevel |
( |
| ) |
const |
- Returns
- The configured log level.
◆ GetLogProperties()
| const std::string & ccf::control::Config::GetLogProperties |
( |
| ) |
const |
- Returns
- The log properties config filename.
◆ GetMsgReplierEndpoint()
| const std::string & ccf::control::Config::GetMsgReplierEndpoint |
( |
| ) |
const |
- Returns
- The network endpoint to send request to this application. The format is "<middleware>.<protocol>://<ipaddr>:<port>". For example: "zpb.rr://127.0.0.1:12081/"
◆ GetNbOfProcThreads()
| int16_t ccf::control::Config::GetNbOfProcThreads |
( |
| ) |
|
- Returns
- The number of Processing Threads.
◆ GetProcName()
| const std::string & ccf::control::Config::GetProcName |
( |
| ) |
const |
- Returns
- The application process name.
◆ GetSmScxmlFilename()
| const std::string & ccf::control::Config::GetSmScxmlFilename |
( |
| ) |
const |
- Returns
- The SCXML State Machine model filename used by the application.
◆ LoadConfig()
| void ccf::control::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.
- Parameters
-
◆ operator=()
Disable copy constructor.
◆ ParseOptions()
| bool ccf::control::Config::ParseOptions |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
This method parses the command line parameters overriding the initialization done in the constructor.
- Parameters
-
| [in] | argc | Number of command line options. |
| [in] | argv | Pointer to the array of command line options. |
- Returns
- false if the help option has been invoked, true otherwise.
The documentation for this class was generated from the following files: