![]() |
Project
|
#include <ROBoardConfigHandler.h>
Public Member Functions | |
ROBoardConfigHandler () | |
Default constructor. | |
ROBoardConfigHandler (const char *filename) | |
Constructor from file. | |
ROBoardConfigHandler (std::istream &in) | |
Constructor from stream. | |
ROBoardConfigHandler (const std::vector< ROBoardConfig > &configurations) | |
Constructor from list of local board configuration. | |
~ROBoardConfigHandler ()=default | |
Default destructor. | |
const ROBoardConfig | getConfig (uint8_t uniqueLocId) const |
const std::unordered_map< uint8_t, ROBoardConfig > | getConfigMap () const |
Returns the configuration map. | |
void | set (const std::vector< ROBoardConfig > &configurations) |
void | updateMasks (const std::vector< ROBoard > &masks) |
void | write (const char *filename) const |
void | write (std::ostream &out) const |
Definition at line 28 of file ROBoardConfigHandler.h.
o2::mid::ROBoardConfigHandler::ROBoardConfigHandler | ( | ) |
Default constructor.
Definition at line 32 of file ROBoardConfigHandler.cxx.
o2::mid::ROBoardConfigHandler::ROBoardConfigHandler | ( | const char * | filename | ) |
Constructor from file.
Definition at line 37 of file ROBoardConfigHandler.cxx.
o2::mid::ROBoardConfigHandler::ROBoardConfigHandler | ( | std::istream & | in | ) |
Constructor from stream.
Definition at line 42 of file ROBoardConfigHandler.cxx.
o2::mid::ROBoardConfigHandler::ROBoardConfigHandler | ( | const std::vector< ROBoardConfig > & | configurations | ) |
Constructor from list of local board configuration.
Definition at line 47 of file ROBoardConfigHandler.cxx.
|
default |
Default destructor.
const ROBoardConfig o2::mid::ROBoardConfigHandler::getConfig | ( | uint8_t | uniqueLocId | ) | const |
Returns the configuration for the local board
uniqueLocId | Unique local board ID |
Definition at line 52 of file ROBoardConfigHandler.cxx.
|
inline |
Returns the configuration map.
Definition at line 48 of file ROBoardConfigHandler.h.
void o2::mid::ROBoardConfigHandler::set | ( | const std::vector< ROBoardConfig > & | configurations | ) |
Sets the local board configurations from a vector
configurations | List of local board configurations |
Definition at line 121 of file ROBoardConfigHandler.cxx.
Updates the mask values
masks | New masks |
Definition at line 129 of file ROBoardConfigHandler.cxx.
Writes the configuration to file
filename | Output file path |
Definition at line 114 of file ROBoardConfigHandler.cxx.
void o2::mid::ROBoardConfigHandler::write | ( | std::ostream & | out | ) | const |
Streams the configuration
out | Output stream |
Definition at line 100 of file ROBoardConfigHandler.cxx.