STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::config::DynamicConfigManager Class Reference

Dynamic Configuration Manager. More...

#include <BoardDiscovery.hpp>

Collaboration diagram for fsw::config::DynamicConfigManager:
[legend]

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_

Detailed Description

Dynamic Configuration Manager.

Manages configuration that updates based on discovered hardware

Definition at line 258 of file BoardDiscovery.hpp.

Constructor & Destructor Documentation

◆ DynamicConfigManager()

fsw::config::DynamicConfigManager::DynamicConfigManager ( )

Definition at line 11 of file DynamicConfigManager.cpp.

◆ ~DynamicConfigManager()

fsw::config::DynamicConfigManager::~DynamicConfigManager ( )
default

Member Function Documentation

◆ get_config()

std::map< std::string, std::map< std::string, std::string > > fsw::config::DynamicConfigManager::get_config ( ) const
inline

Get current configuration.

Definition at line 276 of file BoardDiscovery.hpp.

References config_.

◆ load_base_config()

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().

◆ update_with_boards()

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.

References board(), channels, and config_.

Member Data Documentation

◆ base_config_path_

std::string fsw::config::DynamicConfigManager::base_config_path_
private

Definition at line 282 of file BoardDiscovery.hpp.

Referenced by load_base_config().

◆ config_

std::map<std::string, std::map<std::string, std::string> > fsw::config::DynamicConfigManager::config_
private

Definition at line 281 of file BoardDiscovery.hpp.

Referenced by get_config(), load_base_config(), and update_with_boards().


The documentation for this class was generated from the following files: