28 for (
const auto& m : nettingSetMap) {
29 if (m.first ==
"NettingSetId") {
31 }
else if (m.first ==
"AgreementType") {
33 }
else if (m.first ==
"CallType") {
35 }
else if (m.first ==
"InitialMarginType") {
37 }
else if (m.first ==
"LegalEntityId") {
40 WLOG(
"NettingSetDetails:: Unsupported field \'" << m.second <<
"\'");
65 return nettingSetDetailsNode;
70 if (includeOptionalFields)
71 fieldNames = {
"NettingSetId",
"AgreementType",
"CallType",
"InitialMarginType",
"LegalEntityId"};
79 return vector<string>({
"AgreementType",
"CallType",
"InitialMarginType",
"LegalEntityId"});
83 map<string, string> rep;
86 rep.insert({
"CallType",
callType()});
108 std::ostream& tmp = out <<
"NettingSetId=\'" << nettingSetDetails.
nettingSetId() <<
"\'";
111 return tmp <<
", AgreementType=\'" << nettingSetDetails.
agreementType() <<
"\', CallType=\'"
112 << nettingSetDetails.
callType() <<
"\', InitialMarginType=\'"
Serializable object holding netting set identification data.
NettingSetDetails()
Default constructor.
static const vector< string > optionalFieldNames()
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
const map< string, string > mapRepresentation() const
Returns a map representation of the object.
string initialMarginType_
const string & initialMarginType() const
const string & nettingSetId() const
bool emptyOptionalFields() const
static const vector< string > fieldNames(bool includeOptionalFields=true)
Returns the XML field names of all the private members.
const string & callType() const
const string & legalEntityId() const
const string & agreementType() const
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
Classes and functions for log message handling.
#define WLOG(text)
Logging Macro (Level = Warning)
bool operator<(const Dividend &d1, const Dividend &d2)
bool operator!=(const Filter &a, const Filter &b)
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
bool operator==(const Dividend &d1, const Dividend &d)
Serializable Credit Default Swap.
netting set details data model and serialization