| ifw-fcf
    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 | GetServerId () const | 
| const std::string | GetMsgReplierEndpoint () const | 
| const std::string | GetDbEndpoint () const | 
| const std::string | GetPubEndpoint () 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 int | GetNumDevices () | 
| GetNumDevices.  More... | |
| const std::string | GetFitsPrefix () const | 
| Get FITS prefix.  More... | |
| const std::string | GetDeviceName (const int &device_index) | 
| GetDeviceName.  More... | |
| const std::string | GetDeviceFile (const std::string &name) | 
| GetDeviceFile.  More... | |
| const std::string | GetDeviceType (const std::string &name) | 
| GetDeviceType.  More... | |
| virtual dit::did::Did & | GetDid () | 
| virtual void | GetConfigList (std::vector< std::string > &cfg_list) | 
| Get configuration list.  More... | |
| const unsigned int | GetCmdTout () | 
| GetCmdTout.  More... | |
| void | SetCmdTout (const unsigned int cmd_tout) | 
| SetCmdTout.  More... | |
| Config (const Config &)=delete | |
| Config & | operator= (const Config &)=delete | 
| Disable copy constructor.  More... | |
This class provide access to the command line options and the configuration parameters stored in the configuration file.
| fcf::devmgr::common::Config::Config | ( | ) | 
Default constructor.
Initialize application configuration attributes by
| 
 | virtual | 
Default destructor.
| 
 | delete | 
| 
 | virtual | 
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Get configuration list.
| cfg_list | List of all configuration parameters. | 
This method returs the complete of configuration parameters handled by this class. This method is used to dump the list into the DB.
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
| 
 | virtual | 
| 
 | virtual | 
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Get FITS prefix.
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
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. | 
Implements fcf::devmgr::common::IConfig.
| 
 | virtual | 
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. | 
Implements fcf::devmgr::common::IConfig.
| void fcf::devmgr::common::Config::SetCmdTout | ( | const unsigned int | cmd_tout | ) | 
SetCmdTout.
| cmd_tout | new command timeout | 
 1.8.5
 1.8.5