1 #ifndef SiStripConfObject_h
2 #define SiStripConfObject_h
32 template <
class valueType>
37 if(
parameters.insert(std::make_pair(name, ss.str())).second )
return true;
45 template <
class valueType>
50 std::cout <<
"WARNING in SiStripConfObject::update: parameter " << name <<
" not found, "
51 <<
"so cannot be updated to '" << inputValue <<
"'." << std::endl;
56 it->second = ss.str();
61 template <
class valueType>
64 valueType returnValue;
72 std::cout <<
"WARNING: parameter " <<
name <<
" not found. Returning default value" << std::endl;
88 typedef std::map<std::string, std::string>
parMap;
94 bool SiStripConfObject::put<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
96 bool SiStripConfObject::update<std::vector<int> >(
const std::string &
name,
const std::vector<int> & inputValue );
98 std::vector<int> SiStripConfObject::get<std::vector<int> >(
const std::string &
name )
const;
100 bool SiStripConfObject::put<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
102 bool SiStripConfObject::update<std::vector<std::string> >(
const std::string &
name,
const std::vector<std::string> & inputValue );
104 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.
bool isParameter(const std::string &name) const