7#ifndef _PARAMETER_SET_H_
8#define _PARAMETER_SET_H_
40 int getInteger(
const std::string& name,
int defaultValue)
const;
48 double getDouble(
const std::string& name)
const;
58 double getDouble(
const std::string& name,
double defaultValue)
const;
64 const std::string&
getString(
const std::string& name)
const;
74 const std::string&
getString(
const std::string& name,
const std::string& defaultValue)
const;
81 const std::vector<int>&
getVInteger(
const std::string& name)
const;
91 const std::vector<int>&
getVInteger(
const std::string& name,
const std::vector<int>& defaultValue)
const;
98 const std::vector<double>&
getVDouble(
const std::string& name)
const;
108 const std::vector<double>&
getVDouble(
const std::string& name,
const std::vector<double>& defaultValue)
const;
115 const std::vector<std::string>&
getVString(
const std::string& name)
const;
125 const std::vector<std::string>&
getVString(
const std::string& name,
const std::vector<std::string>& defaultValue)
const;
133 void insert(
const std::string& name,
int value);
141 void insert(
const std::string& name,
double value);
149 void insert(
const std::string& name,
const std::string& value);
157 void insert(
const std::string& name,
const std::vector<int>& values);
165 void insert(
const std::string& name,
const std::vector<double>& values);
173 void insert(
const std::string& name,
const std::vector<std::string>& values);
208 Element(
const std::vector<int>& inval);
210 Element(
const std::vector<double>& inval);
212 Element(
const std::vector<std::string>& inval);
const std::vector< int > & getVInteger(const std::string &name) const
Get a vector of integers by name or throw an exception if not available, or not the right type.
const std::vector< double > & getVDouble(const std::string &name) const
Get a vector of doubles by name or throw an exception if not available, or not the right type.
const std::string & getString(const std::string &name) const
const std::vector< std::string > & getVString(const std::string &name) const
Get a vector of strings by name or throw an exception if not available, or not the right type.
void insert(const std::string &name, int value)
Add an integer to the ParameterSet.
std::map< std::string, Element > elements_
double getDouble(const std::string &name) const
Get a double by name or throw an exception if not available, or not the right type.
int getInteger(const std::string &name) const
Get an integer by name or throw an exception if not available, or not the right type.
Backing data structure containing parameter values.
std::vector< double > dvecVal_
std::vector< std::string > svecVal_
ParameterSet * subsetVal_
Element(const std::string &inval)
std::vector< int > ivecVal_