Class to hold Underlyings. More...
#include <ored/portfolio/underlying.hpp>
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) 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) |
void | fromXMLString (const std::string &xml) |
Parse from XML string. | |
std::string | toXMLString () |
Parse from XML string. | |
Class to hold Underlyings.