![]() |
0.5.0
|
Config management for the Project. More...
Go to the source code of this file.
Namespaces | |
| namespace | NAV |
| namespace | NAV::ConfigManager |
Functions | |
| void | NAV::ConfigManager::CheckOptions (const int argc, const char *argv[]) |
| Writes all command line options into the log. | |
| void | NAV::ConfigManager::deinitialize () |
| Deinitializes the config manager. Call this if you want to Fetch config again. | |
| std::vector< std::string > | NAV::ConfigManager::FetchConfigs (const int argc, const char *argv[]) |
| Fetches the configs from the command line parameters. | |
| template<typename T> | |
| const T & | NAV::ConfigManager::Get (const std::string &key) |
| Retrieves the value of a corresponding key from the configuration, if it does not exists, throws an exception. | |
| template<typename T> | |
| const T & | NAV::ConfigManager::Get (const std::string &key, const T &&defaultValue) |
| Retrieves the value of a corresponding key from the configuration, if one exists. | |
| std::vector< std::string > | NAV::ConfigManager::GetKeys () |
| Returns all keys in the configuration, as a vector. | |
| const boost::program_options::options_description & | NAV::ConfigManager::GetProgramOptions () |
| Get the Program Options object. | |
| bool | NAV::ConfigManager::HasKey (const std::string &key) |
| Checks if a corresponding key exists in the configuration. | |
| void | NAV::ConfigManager::initialize () |
| Initializes the config manager. Call this function before using other functions. | |
| void | NAV::ConfigManager::LoadGlobalSettings () |
| Loads the global settings. | |
| void | NAV::ConfigManager::SaveGlobalSettings () |
| Saves the global settings. | |
Variables | |
| boost::program_options::variables_map | NAV::ConfigManager::vm |
| Map which stores all options. | |