Provides the input data and references to input files used in OREApp. More...
#include <orea/app/parameters.hpp>
Public Member Functions | |
Parameters () | |
void | clear () |
void | fromFile (const string &) |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
bool | hasGroup (const string &groupName) const |
bool | has (const string &groupName, const string ¶mName) const |
string | get (const string &groupName, const string ¶mName, bool fail=true) const |
const map< string, string > & | data (const string &groupName) const |
const map< string, string > & | markets () const |
void | log () |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const=0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
std::string | toXMLString () const |
Private Attributes | |
map< string, map< string, string > > | data_ |
Provides the input data and references to input files used in OREApp.
Definition at line 40 of file parameters.hpp.
Parameters | ( | ) |
Definition at line 42 of file parameters.hpp.
void clear | ( | ) |
Definition at line 73 of file parameters.cpp.
void fromFile | ( | const string & | fileName | ) |
Definition at line 65 of file parameters.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 75 of file parameters.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 126 of file parameters.cpp.
bool hasGroup | ( | const string & | groupName | ) | const |
bool has | ( | const string & | groupName, |
const string & | paramName | ||
) | const |
Definition at line 34 of file parameters.cpp.
string get | ( | const string & | groupName, |
const string & | paramName, | ||
bool | fail = true |
||
) | const |
Definition at line 40 of file parameters.cpp.
const map< string, string > & data | ( | const string & | groupName | ) | const |
Definition at line 55 of file parameters.cpp.
const map< string, string > & markets | ( | ) | const |
Definition at line 61 of file parameters.cpp.
void log | ( | ) |
Definition at line 132 of file parameters.cpp.
|
private |
Definition at line 58 of file parameters.hpp.