Public Types | |
enum | Mode { M_UNKNOWN = 0, M_WP = 1, M_LC = 2 } |
determines the format of the objects to be read/written from the config file More... | |
Public Member Functions | |
QLCConfigWriter () | |
ctor | |
virtual | ~QLCConfigWriter () |
dtor | |
void | Clear () |
clear cache | |
QError | Add (const QEleChannelConfig &config, const std::string &setName) |
add single channel electronics configuration to chache | |
QError | Add (const std::map< unsigned int, QEleChannelConfig > &configMap, const std::string &set) |
add multiple channels electronics configuration to cache | |
QError | SetActiveChannels (const std::set< int > &channels) |
set channels to be considered in the load curves procedure | |
QError | SetChannelsWithHeater (const std::set< int > &channels) |
set list of channels with working heater | |
QError | SetWrongPolarityChannels (const std::set< int > &channels) |
set list of channel with wrong polarity | |
QError | Write (const Mode mode, const std::string &filename) |
write cache to file | |
bool | Contains (const QEleChannelConfig &config, const std::string &setName) |
chech whether cache contains a given electronics configuration The comparison is based on the custom operator==() that is implemented in QEleChannelConfig. | |
Private Member Functions | |
Cuore::QMatrix | vector2QMatrix (const std::vector< QEleChannelConfig > &configs, const Mode mode) |
QError | SetSet (const std::set< int > &theSet, const std::string &name) |
Private Attributes | |
std::map< std::string, std::vector< QEleChannelConfig > > | fSets |
std::map< std::string, Cuore::QVector > | fVectors |
QMatrix QLCConfigWriter::vector2QMatrix | ( | const std::vector< QEleChannelConfig > & | configs, | |
const Mode | mode | |||
) | [private] |
map a vector of QEleChannelConfig objects into a QMatrix
Referenced by Write().
QError QLCConfigWriter::SetSet | ( | const std::set< int > & | theSet, | |
const std::string & | name | |||
) | [private] |
add a set of integers named name to fVectors
References fVectors.
Referenced by SetActiveChannels(), SetChannelsWithHeater(), and SetWrongPolarityChannels().
std::map<std::string, std::vector<QEleChannelConfig> > QLCConfigWriter::fSets [private] |
map of vectors with electronics configurations. key: name for the group of channels, value: vector of electronics configurations
Referenced by Add(), Clear(), Contains(), and Write().
std::map<std::string, Cuore::QVector> QLCConfigWriter::fVectors [private] |