#include <SiStripConfObject.h>
Public Types | |
typedef std::map< std::string, std::string > | parMap |
Public Member Functions | |
template<class valueType > | |
valueType | get (const std::string &name) const |
bool | isParameter (const std::string &name) const |
void | printDebug (std::stringstream &ss) const |
Prints the full list of parameters. More... | |
void | printSummary (std::stringstream &ss) const |
Prints the full list of parameters. More... | |
template<class valueType > | |
bool | put (const std::string &name, const valueType &inputValue) |
SiStripConfObject () | |
template<class valueType > | |
bool | update (const std::string &name, const valueType &inputValue) |
Public Attributes | |
parMap | parameters |
Author M. De Mattia - 16/11/2009
Simple class used to store configuration values.
It stores a map<std::string, std::string> with all the parameters and their values.
The put and get methods are provided to store and access the parameters.
The put method retuns a bool which is true if the insertion was successuful. If the parameter is already existing the insertion will not happen and the return value will be false.
The get method is templated and works like the getParameter<type> of the framework.
The isParameter method can be used to check whether a parameter exists. It will return a bool with the result.
The printSummary and printDebug method return both the full list of parameters.
Definition at line 27 of file SiStripConfObject.h.
typedef std::map<std::string, std::string> SiStripConfObject::parMap |
Definition at line 88 of file SiStripConfObject.h.
|
inline |
Definition at line 30 of file SiStripConfObject.h.
|
inline |
Definition at line 62 of file SiStripConfObject.h.
References gather_cfg::cout, mergeVDriftHistosByStation::name, and parameters.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and StripCPE::StripCPE().
|
inline |
Definition at line 78 of file SiStripConfObject.h.
References parameters.
Referenced by StripCPE::StripCPE().
void SiStripConfObject::printDebug | ( | std::stringstream & | ss | ) | const |
Prints the full list of parameters.
Definition at line 104 of file SiStripConfObject.cc.
References printSummary().
void SiStripConfObject::printSummary | ( | std::stringstream & | ss | ) | const |
Prints the full list of parameters.
Definition at line 96 of file SiStripConfObject.cc.
References parameters.
Referenced by printDebug().
|
inline |
Definition at line 33 of file SiStripConfObject.h.
References parameters.
Referenced by SiStripConfObjectGenerator::createObject().
|
inline |
Updating the value stored as 'name' with 'inputValue'. False if parameter 'name' does not exist (and nothing is done then - use put(..) instead!), otherwise true.
Definition at line 46 of file SiStripConfObject.h.
References gather_cfg::cout, and parameters.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
parMap SiStripConfObject::parameters |
Definition at line 90 of file SiStripConfObject.h.
Referenced by get(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), isParameter(), printSummary(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), put(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), and update().