|
ifw-fcf
5.0.0-pre2
|
#include <config.hpp>
Public Member Functions | |
| Config () | |
| virtual | ~Config () |
| void | LoadConfig (const std::string &filename="", bool reset=false) |
| const int | GetNumDevices () const |
| GetNumDevices. More... | |
| const std::string | GetDeviceName (const int &device_index) const |
| GetDeviceName. More... | |
| const std::string | GetDeviceFile (const int &device_index) const |
| GetDeviceFile. More... | |
| const std::string | GetDeviceType (const int &device_index) const |
| GetDeviceType. More... | |
| const std::string | GetDeviceInterface (const int &device_index) const |
| GetDeviceInterface. More... | |
| virtual void | GetConfigList (utils::bat::DbVector &cfg_list) override |
| Get configuration list. 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.
|
overridevirtual |
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.
GetDeviceFile.
| device_index |
GetDeviceInterface.
| device_index |
GetDeviceName.
| device_index |
GetDeviceType.
| device_index |
| const int fcf::devmgr::common::Config::GetNumDevices | ( | ) | const |
GetNumDevices.
| void fcf::devmgr::common::Config::LoadConfig | ( | const std::string & | filename = "", |
| bool | reset = false |
||
| ) |
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. |