Logo
Reference manual - version ored_version
Underlying Class Reference

Class to hold Underlyings. More...

#include <ored/portfolio/underlying.hpp>

Inheritance diagram for Underlying:

Public Member Functions

 Underlying ()
 Default Constructor.
 Underlying (const std::string &type, const std::string &name, const QuantLib::Real weight=QuantLib::Null< QuantLib::Real >())
 Constructor with type, name, weight.
Serialisation
virtual void fromXML (ore::data::XMLNode *node) override
virtual ore::data::XMLNode * toXML (ore::data::XMLDocument &doc) const override
Setters
void setType (const string &type)
void setName (const string &name)
void setWeight (const QuantLib::Real weight)
void setNodeName (const string &nodeName)
void setBasicUnderlyingNodeName (const string &basicUnderlyingNodeName)
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

std::string type_
std::string name_
Real weight_ = QuantLib::Null<QuantLib::Real>()
std::string nodeName_
std::string basicUnderlyingNodeName_
bool isBasic_ = false
const std::string & type () const
virtual const std::string & name () const
Real weight () const

Detailed Description

Class to hold Underlyings.

Member Function Documentation

◆ fromXML()

virtual void fromXML ( ore::data::XMLNode * node)
overridevirtual

Implements XMLSerializable.

◆ toXML()

virtual ore::data::XMLNode * toXML ( ore::data::XMLDocument & doc) const
overridevirtual

Implements XMLSerializable.