#include <config_manager.hpp>
Class to create and manage a set of configurations.
- Author
- Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
- Version
- July 21, 2016
◆ ConfigMap
Map of configuration group names to configuration objects.
◆ ~ConfigManager()
fly::config::ConfigManager::~ConfigManager |
( |
| ) |
|
Destructor. Stop the configuration manager and underlying objects.
◆ create()
Create and start a configuration manager.
- Parameters
-
task_runner | Task runner for posting config-related tasks onto. |
file_type | File format of the configuration file. |
path | Path to the configuration file. |
- Returns
- The created configuration manager.
◆ create_config()
template<fly::DerivedFrom< Config > T>
std::shared_ptr< T > fly::config::ConfigManager::create_config |
Create a configuration object, or if one with the given type's name exists, fetch it.
- Template Parameters
-
- Returns
- A reference to the created/found configuration.
◆ prune()
ConfigManager::ConfigMap::size_type fly::config::ConfigManager::prune |
( |
| ) |
|
Erase any expired configuration objects.
- Returns
- The remaining number of configurations.
The documentation for this class was generated from the following files: