QLCConfigWriter Class Reference

List of all members.


Detailed Description

writer for configuration parameters used in load curves

Author:
Marco Vignati

Sergio Di Domizio


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

Member Enumeration Documentation

determines the format of the objects to be read/written from the config file

Enumerator:
M_WP  working point mode
M_LC  load curves mode -- same as WP but also with test signal values


Member Function Documentation

QMatrix QLCConfigWriter::vector2QMatrix ( const std::vector< QEleChannelConfig > &  configs,
const Mode  mode 
) [private]

map a vector of QEleChannelConfig objects into a QMatrix

References M_LC, and M_WP.

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


Member Data Documentation

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]

map of vectors to be written to file. the key is the name to be associated to each vector

Referenced by SetSet(), and Write().


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

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6