121 inline const std::string&
124 inline const std::vector<std::string>&
131 bpar_[key] = atoi(val) ?
true :
false; }
134 bpar_[key] = val ?
true :
false; }
140 ipar_[key] = atoi(val); }
146 dpar_[key] = atof(val); }
155 sapar_[key].push_back(val); }
171 for (
size_t j = 0; j <
sapar_[i].size(); ++j)
190 sapar_[i].reserve(str_size);
191 for (
size_t j = 0; j < str_size; ++j){
193 sapar_[i].push_back(std::string());
const std::string & entry(const strParams key) const
void setEntry(const boolParams key, const char val)
char is true(1) or false(0), not used
void setEntry(const boolParams key, const char *val)
char* is true(1) or false(0), not used
virtual void setDefaultEntries()
Method for setting the default values for the parameters.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
intParams
Integer paramters.
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
double entry(const dblParams key) const
This is the class serves as a holder for a set of parameters.
void setEntry(const dblParams key, const double val)
void unpack(AlpsEncoded &buf)
Unpack the parameter set from the buffer.
void pack(AlpsEncoded &buf)
Pack the parameter set into the buffer (AlpsEncoded is used as buffer Here).
int * ipar_
The integer parameters.
void setEntry(const intParams key, const int val)
strArrayParams
There are no string array parameters.
VrpParams()
The default constructor creates a parameter set with from the template argument structure.
dblParams
Double parameters.
void setEntry(const intParams key, const char *val)
This data structure is to contain the packed form of an encodable knowledge.
std::string * spar_
The string (actually, std::string) parameters.
boolParams
Character parameters.
void setEntry(const strArrayParams key, const char *val)
void setEntry(const strParams key, const char *val)
void setEntry(const boolParams key, const bool val)
This method is the one that ever been used.
std::vector< std::string > * sapar_
The keyword, parameter pairs.
const std::vector< std::string > & entry(const strArrayParams key) const
bool * bpar_
The bool parameters.
virtual void createKeywordList()
Method for creating the list of keyword looked for in the parameter file.
void setEntry(const dblParams key, const char *val)
bool entry(const boolParams key) const
double * dpar_
The double parameters.
int entry(const intParams key) const
strParams
String parameters.