Logo
Reference manual - version ored_version
CdsReferenceInformation Class Reference

#include <ored/portfolio/creditdefaultswapdata.hpp>

Inheritance diagram for CdsReferenceInformation:

Public Member Functions

 CdsReferenceInformation ()
 Default constructor.
 CdsReferenceInformation (const std::string &referenceEntityId, CdsTier tier, const QuantLib::Currency &currency, QuantLib::ext::optional< CdsDocClause > docClause=QuantLib::ext::nullopt)
 Detailed constructor.
XMLSerializable interface
void fromXML (XMLNode *node) override
XMLNode * toXML (XMLDocument &doc) const override
Public Member Functions inherited from XMLSerializable
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

Inspectors

const std::string & referenceEntityId () const
CdsTier tier () const
const QuantLib::Currency & currency () const
bool hasDocClause () const
CdsDocClause docClause () const
const std::string & id () const

Detailed Description

Serializable reference information

Member Function Documentation

◆ fromXML()

void fromXML ( XMLNode * node)
overridevirtual

Implements XMLSerializable.

◆ toXML()

XMLNode * toXML ( XMLDocument & doc) const
overridevirtual

Implements XMLSerializable.

◆ id()

const std::string & id ( ) const

Give back the ID for the CdsReferenceInformation object. The id is the concatenation of the string representation of the object's members using the | character as a delimiter.