Pricing engine description. More...
#include <ored/portfolio/enginedata.hpp>
Public Member Functions | |
EngineData () | |
Default constructor. More... | |
Inspectors | |
bool | hasProduct (const string &productName) |
const string & | model (const string &productName) const |
const map< string, string > & | modelParameters (const string &productName) const |
const string & | engine (const string &productName) const |
const map< string, string > & | engineParameters (const string &productName) const |
const std::map< std::string, std::string > & | globalParameters () const |
vector< string > | products () const |
Return all products. More... | |
Setters | |
string & | model (const string &productName) |
map< string, string > & | modelParameters (const string &productName) |
string & | engine (const string &productName) |
map< string, string > & | engineParameters (const string &productName) |
std::map< std::string, std::string > & | globalParameters () |
void | clear () |
Clear all data. More... | |
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) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Serialisation | |
map< string, string > | model_ |
map< string, map< string, string > > | modelParams_ |
map< string, string > | engine_ |
map< string, map< string, string > > | engineParams_ |
std::map< std::string, std::string > | globalParams_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Pricing engine description.
Definition at line 41 of file enginedata.hpp.
EngineData | ( | ) |
bool hasProduct | ( | const string & | productName | ) |
Definition at line 118 of file enginedata.cpp.
const string & model | ( | const string & | productName | ) | const |
const map< string, string > & modelParameters | ( | const string & | productName | ) | const |
Definition at line 50 of file enginedata.hpp.
const string & engine | ( | const string & | productName | ) | const |
const map< string, string > & engineParameters | ( | const string & | productName | ) | const |
Definition at line 52 of file enginedata.hpp.
const std::map< std::string, std::string > & globalParameters | ( | ) | const |
Definition at line 55 of file enginedata.hpp.
vector< string > products | ( | ) | const |
Return all products.
Definition at line 120 of file enginedata.cpp.
string & model | ( | const string & | productName | ) |
Definition at line 63 of file enginedata.hpp.
map< string, string > & modelParameters | ( | const string & | productName | ) |
Definition at line 64 of file enginedata.hpp.
string & engine | ( | const string & | productName | ) |
Definition at line 65 of file enginedata.hpp.
map< string, string > & engineParameters | ( | const string & | productName | ) |
Definition at line 66 of file enginedata.hpp.
std::map< std::string, std::string > & globalParameters | ( | ) |
Definition at line 67 of file enginedata.hpp.
void clear | ( | ) |
Clear all data.
Definition at line 28 of file enginedata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 36 of file enginedata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 79 of file enginedata.cpp.
|
private |
Definition at line 80 of file enginedata.hpp.
|
private |
Definition at line 81 of file enginedata.hpp.
|
private |
Definition at line 82 of file enginedata.hpp.
|
private |
Definition at line 83 of file enginedata.hpp.
|
private |
Definition at line 84 of file enginedata.hpp.