29#include <boost/any.hpp>
30#include <boost/none.hpp>
31#include <ql/tuple.hpp>
32#include <boost/tuple/tuple_comparison.hpp>
107 const std::string& defaultValue = std::string())
const;
109 const boost::any& defaultValue = boost::none)
const;
Serializable object holding generic trade data, reporting dimensions.
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.
Envelope(const string &counterparty, const map< string, string > &additionalFields)
Constructor without netting set / portfolio ids, with additional fields.
set< string > portfolioIds_
const NettingSetDetails nettingSetDetails() const
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.
const map< string, string > additionalFields() const
const set< string > & portfolioIds() const
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
Envelope()
Default constructor.
void setAdditionalField(const std::string &key, const boost::any &value)
bool hasNettingSetDetails() const
Check if the netting set details have been populated.
NettingSetDetails nettingSetDetails_
Envelope(const string &counterparty, const string &nettingSetId, const set< string > &portfolioIds=set< string >())
Constructor with netting set id and portfolio ids, without additional fields.
const string & nettingSetId() const
const map< string, boost::any > & fullAdditionalFields() const
boost::any additionalAnyField(const std::string &name, const bool mandatory=true, const boost::any &defaultValue=boost::none) const
const string & counterparty() const
map< string, boost::any > additionalFields_
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.
string additionalField(const std::string &name, const bool mandatory=true, const std::string &defaultValue=std::string()) const
bool initialized() const
Check if the envelope is initialized.
Serializable object holding netting set identification data.
bool empty() const
Check if the netting set details have been populated.
const string & nettingSetId() const
Small XML Document wrapper class.
Base class for all serializable classes.
SafeStack< ValueType > value
Serializable Credit Default Swap.
netting set details data model and serialization