Serializable object holding generic trade data, reporting dimensions. More...
#include <ored/portfolio/envelope.hpp>
Inheritance diagram for Envelope:
Collaboration diagram for Envelope:Public Member Functions | |
| Envelope () | |
| Default constructor. More... | |
| Envelope (const string &counterparty, const string &nettingSetId, const set< string > &portfolioIds=set< string >()) | |
| Constructor with netting set id and portfolio ids, without additional fields. More... | |
| Envelope (const string &counterparty, const NettingSetDetails &nettingSetDetails=NettingSetDetails(), const set< string > &portfolioIds=set< string >()) | |
| Constructor with netting set details and portfolio ids, without additional fields. More... | |
| Envelope (const string &counterparty, const map< string, string > &additionalFields) | |
| Constructor without netting set / portfolio ids, with additional fields. More... | |
| Envelope (const string &counterparty, const string &nettingSetId, const map< string, string > &additionalFields, const set< string > &portfolioIds=set< string >()) | |
| Constructor with netting set, with additional fields. More... | |
| Envelope (const string &counterparty, const NettingSetDetails &nettingSetDetails, const map< string, string > &additionalFields, const set< string > &portfolioIds=set< string >()) | |
| Constructor with netting set details, with additional fields. More... | |
Serialisation | |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
Inspectors | |
| const string & | counterparty () const |
| const string & | nettingSetId () const |
| const NettingSetDetails | nettingSetDetails () const |
| const set< string > & | portfolioIds () const |
| const map< string, string > | additionalFields () const |
| const map< string, boost::any > & | fullAdditionalFields () const |
| string | additionalField (const std::string &name, const bool mandatory=true, const std::string &defaultValue=std::string()) const |
| boost::any | additionalAnyField (const std::string &name, const bool mandatory=true, const boost::any &defaultValue=boost::none) const |
| void | setAdditionalField (const std::string &key, const boost::any &value) |
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... | |
Utility | |
| string | counterparty_ |
| NettingSetDetails | nettingSetDetails_ |
| set< string > | portfolioIds_ |
| map< string, boost::any > | additionalFields_ |
| bool | initialized_ = false |
| bool | initialized () const |
| Check if the envelope is initialized. More... | |
| bool | hasNettingSetDetails () const |
| Check if the netting set details have been populated. More... | |
Serializable object holding generic trade data, reporting dimensions.
Definition at line 51 of file envelope.hpp.
| Envelope | ( | ) |
| Envelope | ( | const string & | counterparty, |
| const string & | nettingSetId, | ||
| const set< string > & | portfolioIds = set<string>() |
||
| ) |
Constructor with netting set id and portfolio ids, without additional fields.
Definition at line 57 of file envelope.hpp.
| Envelope | ( | const string & | counterparty, |
| const NettingSetDetails & | nettingSetDetails = NettingSetDetails(), |
||
| const set< string > & | portfolioIds = set<string>() |
||
| ) |
Constructor with netting set details and portfolio ids, without additional fields.
Definition at line 62 of file envelope.hpp.
| Envelope | ( | const string & | counterparty, |
| const map< string, string > & | additionalFields | ||
| ) |
Constructor without netting set / portfolio ids, with additional fields.
Definition at line 68 of file envelope.hpp.
Here is the call graph for this function:| Envelope | ( | const string & | counterparty, |
| const string & | nettingSetId, | ||
| const map< string, string > & | additionalFields, | ||
| const set< string > & | portfolioIds = set<string>() |
||
| ) |
Constructor with netting set, with additional fields.
Definition at line 75 of file envelope.hpp.
Here is the call graph for this function:| Envelope | ( | const string & | counterparty, |
| const NettingSetDetails & | nettingSetDetails, | ||
| const map< string, string > & | additionalFields, | ||
| const set< string > & | portfolioIds = set<string>() |
||
| ) |
Constructor with netting set details, with additional fields.
Definition at line 84 of file envelope.hpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 27 of file envelope.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 75 of file envelope.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const string & counterparty | ( | ) | const |
Definition at line 100 of file envelope.hpp.
| const string & nettingSetId | ( | ) | const |
Definition at line 101 of file envelope.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const NettingSetDetails nettingSetDetails | ( | ) | const |
Definition at line 102 of file envelope.hpp.
| const set< string > & portfolioIds | ( | ) | const |
| const map< string, string > additionalFields | ( | ) | const |
Definition at line 110 of file envelope.cpp.
Here is the caller graph for this function:| const map< string, boost::any > & fullAdditionalFields | ( | ) | const |
| string additionalField | ( | const std::string & | name, |
| const bool | mandatory = true, |
||
| const std::string & | defaultValue = std::string() |
||
| ) | const |
Definition at line 118 of file envelope.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| boost::any additionalAnyField | ( | const std::string & | name, |
| const bool | mandatory = true, |
||
| const boost::any & | defaultValue = boost::none |
||
| ) | const |
Definition at line 126 of file envelope.cpp.
| void setAdditionalField | ( | const std::string & | key, |
| const boost::any & | value | ||
| ) |
| bool initialized | ( | ) | const |
Check if the envelope is initialized.
Definition at line 116 of file envelope.hpp.
Here is the caller graph for this function:| bool hasNettingSetDetails | ( | ) | const |
Check if the netting set details have been populated.
Definition at line 118 of file envelope.hpp.
Here is the call graph for this function:
|
private |
Definition at line 122 of file envelope.hpp.
|
private |
Definition at line 123 of file envelope.hpp.
|
private |
Definition at line 124 of file envelope.hpp.
|
private |
Definition at line 125 of file envelope.hpp.
|
private |
Definition at line 126 of file envelope.hpp.