Alps
2.0.2
|
#include <AlpsParams.h>
Public Member Functions | |
Constructors. | |
AlpsParams () | |
The default constructor creates a parameter set with from the template argument structure. More... | |
virtual | ~AlpsParams () |
AlpsParams & | operator= (const AlpsParams &x) |
virtual void | createKeywordList () |
Method for creating the list of keyword looked for in the parameter file. More... | |
virtual void | setDefaultEntries () |
Method for setting the default values for the parameters. More... | |
Query methods | |
For user's application: Copy following code exactly (till the end of this class) and do NOT change anything. The reason can not put following functions in base class
The members of the parameter set can be queried for using the overloaded entry() method. Using the example in the class documentation the user can get a parameter with the "<code>param.entry(USER_par::parameter_name)</code>" expression. | |
bool | entry (const boolParams key) const |
int | entry (const intParams key) const |
double | entry (const dblParams key) const |
const std::string & | entry (const strParams key) const |
const std::vector< std::string > & | entry (const strArrayParams key) const |
void | setEntry (const boolParams key, const char *val) |
char* is true(1) or false(0), not used More... | |
void | setEntry (const boolParams key, const char val) |
char is true(1) or false(0), not used More... | |
void | setEntry (const boolParams key, const bool val) |
This method is the one that ever been used. More... | |
void | setEntry (const intParams key, const char *val) |
void | setEntry (const intParams key, const int val) |
void | setEntry (const dblParams key, const char *val) |
void | setEntry (const dblParams key, const double val) |
void | setEntry (const strParams key, const char *val) |
void | setEntry (const strArrayParams key, const char *val) |
Packing/unpacking methods | |
void | pack (AlpsEncoded &buf) |
Pack the parameter set into buf. More... | |
void | unpack (AlpsEncoded &buf) |
Unpack the parameter set from buf. More... | |
Public Member Functions inherited from AlpsParameterSet | |
void | setEntry (const AlpsParameter key, const char *val) |
First, there is the assignment operator that sets the whole parameter set at once. More... | |
void | readFromStream (std::istream &parstream) |
Read the parameters from the stream specified in the argument. More... | |
void | readFromFile (const char *paramfile) |
Read parameters from a file. More... | |
void | readFromArglist (const int argnum, const char *const *arglist) |
Read parameters from the command line. More... | |
void | writeToStream (std::ostream &outstream) const |
Write keyword-value pairs to the stream specified in the argument. More... | |
AlpsParameterSet (int c, int i, int d, int s, int sa) | |
The constructor allocate memory for parameters. More... | |
virtual | ~AlpsParameterSet () |
The destructor deletes all data members. More... | |
Additional Inherited Members | |
Protected Attributes inherited from AlpsParameterSet | |
std::vector< std::pair< std::string, AlpsParameter > > | keys_ |
The keyword, parameter pairs. More... | |
std::string | prefix_ |
Prefix to be used for looking up parameters. More... | |
std::vector< std::string > | obsoleteKeys_ |
list of obsolete keywords. More... | |
bool * | bpar_ |
The bool parameters. More... | |
int * | ipar_ |
The integer parameters. More... | |
double * | dpar_ |
The double parameters. More... | |
std::string * | spar_ |
The string (actually, std::string) parameters. More... | |
int | numSa_ |
The "vector of string" parameters. More... | |
std::vector< std::string > * | sapar_ |
Definition at line 40 of file AlpsParams.h.
Character parameters.
All of these variable are used as booleans (ture = 1, false = 0).
Definition at line 44 of file AlpsParams.h.
Integer paramters.
Definition at line 70 of file AlpsParams.h.
Double parameters.
Definition at line 165 of file AlpsParams.h.
String parameters.
Enumerator | |
---|---|
instance | The instance to be solved. Default: "NONE" |
logFile | The name of log file. Default: "Alps.log " |
endOfStrParams |
Definition at line 206 of file AlpsParams.h.
There are no string array parameters.
Enumerator | |
---|---|
strArrayDummy | |
endOfStrArrayParams |
Definition at line 219 of file AlpsParams.h.
|
inline |
The default constructor creates a parameter set with from the template argument structure.
The keyword list is created and the defaults are set.
Definition at line 234 of file AlpsParams.h.
|
inlinevirtual |
Definition at line 248 of file AlpsParams.h.
|
inline |
Definition at line 251 of file AlpsParams.h.
|
virtual |
Method for creating the list of keyword looked for in the parameter file.
Implements AlpsParameterSet.
|
virtual |
Method for setting the default values for the parameters.
Implements AlpsParameterSet.
|
inline |
Definition at line 300 of file AlpsParams.h.
|
inline |
Definition at line 302 of file AlpsParams.h.
|
inline |
Definition at line 304 of file AlpsParams.h.
|
inline |
Definition at line 307 of file AlpsParams.h.
|
inline |
Definition at line 310 of file AlpsParams.h.
|
inline |
char* is true(1) or false(0), not used
Definition at line 316 of file AlpsParams.h.
|
inline |
char is true(1) or false(0), not used
Definition at line 319 of file AlpsParams.h.
|
inline |
This method is the one that ever been used.
Definition at line 322 of file AlpsParams.h.
|
inline |
Definition at line 325 of file AlpsParams.h.
|
inline |
Definition at line 328 of file AlpsParams.h.
|
inline |
Definition at line 331 of file AlpsParams.h.
|
inline |
Definition at line 334 of file AlpsParams.h.
|
inline |
Definition at line 337 of file AlpsParams.h.
|
inline |
Definition at line 340 of file AlpsParams.h.
|
inlinevirtual |
Pack the parameter set into buf.
Reimplemented from AlpsParameterSet.
Definition at line 348 of file AlpsParams.h.
|
inlinevirtual |
Unpack the parameter set from buf.
Reimplemented from AlpsParameterSet.
Definition at line 362 of file AlpsParams.h.