#include <ConfObject.h>
Public Types | |
typedef std::map< std::string, std::string > | parMap |
Public Member Functions | |
ConfObject () | |
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) |
Public Attributes | |
COND_SERIALIZABLE | |
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 29 of file ConfObject.h.
typedef std::map<std::string, std::string> ConfObject::parMap |
Definition at line 69 of file ConfObject.h.
|
inline |
Definition at line 32 of file ConfObject.h.
|
inline |
Definition at line 44 of file ConfObject.h.
References gather_cfg::cout, mergeVDriftHistosByStation::name, parameters, and contentValuesCheck::ss.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
|
inline |
void ConfObject::printDebug | ( | std::stringstream & | ss | ) | const |
Prints the full list of parameters.
Definition at line 11 of file ConfObject.cc.
References printSummary().
void ConfObject::printSummary | ( | std::stringstream & | ss | ) | const |
Prints the full list of parameters.
Definition at line 3 of file ConfObject.cc.
References parameters.
Referenced by printDebug().
|
inline |
ConfObject::COND_SERIALIZABLE |
Definition at line 73 of file ConfObject.h.
parMap ConfObject::parameters |
Definition at line 71 of file ConfObject.h.
Referenced by get(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), isParameter(), printSummary(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), put(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().