|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Dynamic Configuration Manager. More...
#include <BoardDiscovery.hpp>
Public Member Functions | |
| DynamicConfigManager () | |
| ~DynamicConfigManager ()=default | |
| bool | load_base_config (const std::string &config_path) |
| Load base configuration. | |
| bool | update_with_boards (const std::vector< DiscoveredBoard > &boards) |
| Update configuration with discovered boards. | |
| std::map< std::string, std::map< std::string, std::string > > | get_config () const |
| Get current configuration. | |
Private Attributes | |
| std::map< std::string, std::map< std::string, std::string > > | config_ |
| std::string | base_config_path_ |
Dynamic Configuration Manager.
Manages configuration that updates based on discovered hardware
Definition at line 258 of file BoardDiscovery.hpp.
| fsw::config::DynamicConfigManager::DynamicConfigManager | ( | ) |
Definition at line 11 of file DynamicConfigManager.cpp.
|
default |
|
inline |
| bool fsw::config::DynamicConfigManager::load_base_config | ( | const std::string & | config_path | ) |
Load base configuration.
Definition at line 14 of file DynamicConfigManager.cpp.
References base_config_path_, and config_.
Referenced by main().
| bool fsw::config::DynamicConfigManager::update_with_boards | ( | const std::vector< DiscoveredBoard > & | boards | ) |
Update configuration with discovered boards.
Definition at line 27 of file DynamicConfigManager.cpp.
|
private |
Definition at line 282 of file BoardDiscovery.hpp.
Referenced by load_base_config().
|
private |
Definition at line 281 of file BoardDiscovery.hpp.
Referenced by get_config(), load_base_config(), and update_with_boards().