Logo
Reference manual - version ored_version
NettingSetDetails Class Reference

Serializable object holding netting set identification data. More...

#include <ored/portfolio/nettingsetdetails.hpp>

Inheritance diagram for NettingSetDetails:

Public Member Functions

 NettingSetDetails ()
 Default constructor.
 NettingSetDetails (const string &nettingSetId, const string &agreementType="", const string &callType="", const string &initialMarginType="", const string &legalEntityId="")
 Constructor with all fields.
 NettingSetDetails (const map< string, string > &nettingSetMap)
 Constructor to reconstruct NettingSetDetails from map (field name to field value).
Serialisation
virtual void fromXML (XMLNode *node) override
virtual XMLNode * toXML (XMLDocument &doc) const override
Inspectors
const stringnettingSetId () const
const stringagreementType () const
const stringcallType () const
const stringinitialMarginType () const
const stringlegalEntityId () const
Public Member Functions inherited from XMLSerializable
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.
std::string toXMLString () const
 Parse from XML string.
std::string toXMLStringUnformatted () const

Utility

bool empty () const
 Check if the netting set details have been populated.
bool emptyOptionalFields () const
void clear ()
const map< string, stringmapRepresentation () const
 Returns a map representation of the object.
static const vector< stringfieldNames (bool includeOptionalFields=true)
 Returns the XML field names of all the private members.
static const vector< stringoptionalFieldNames ()

Detailed Description

Serializable object holding netting set identification data.

Member Function Documentation

◆ fromXML()

virtual void fromXML ( XMLNode * node)
overridevirtual

Implements XMLSerializable.