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