1 #ifndef SiStripConfObject_h
2 #define SiStripConfObject_h
34 template <
class valueType>
39 if(
parameters.insert(std::make_pair(name, ss.str())).second )
return true;
47 template <
class valueType>
52 std::cout <<
"WARNING in SiStripConfObject::update: parameter " << name <<
" not found, "
53 <<
"so cannot be updated to '" << inputValue <<
"'." << std::endl;
58 it->second = ss.str();
63 template <
class valueType>
66 valueType returnValue = 0;
74 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
89 typedef std::map<std::string, std::string>
parMap;
99 bool SiStripConfObject::put<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
101 bool SiStripConfObject::update<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
103 std::vector<int> SiStripConfObject::get<std::vector<int> >(
const std::string &
name )
const;
105 bool SiStripConfObject::put<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
107 bool SiStripConfObject::update<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
109 std::vector<std::string> SiStripConfObject::get<std::vector<std::string> >(
const std::string &
name )
const;
void printSummary(std::stringstream &ss) const
Prints the full list of parameters.
bool update(const std::string &name, const valueType &inputValue)
std::map< std::string, std::string > parMap
bool put(const std::string &name, const valueType &inputValue)
void printDebug(std::stringstream &ss) const
Prints the full list of parameters.
#define COND_SERIALIZABLE
bool isParameter(const std::string &name) const