#include <ored/portfolio/underlying.hpp>
Definition at line 93 of file underlying.hpp.
◆ EquityUnderlying() [1/3]
Default constructor.
Definition at line 96 of file underlying.hpp.
Underlying()
Default Constructor.
void setType(const string &type)
◆ EquityUnderlying() [2/3]
◆ EquityUnderlying() [3/3]
EquityUnderlying |
( |
const std::string & |
name, |
|
|
const std::string & |
identifierType, |
|
|
const std::string & |
currency, |
|
|
const std::string & |
exchange, |
|
|
const QuantLib::Real |
weight |
|
) |
| |
Constructor with identifier information.
Definition at line 102 of file underlying.hpp.
107 };
void setEquityName()
set name of equity
const std::string & currency() const
const std::string & identifierType() const
std::string identifierType_
const std::string & name() const override
const std::string & exchange() const
◆ name()
const std::string & name |
( |
| ) |
const |
|
overridevirtual |
◆ identifierType()
const std::string & identifierType |
( |
| ) |
const |
◆ currency()
const std::string & currency |
( |
| ) |
const |
◆ exchange()
const std::string & exchange |
( |
| ) |
const |
◆ setEquityName()
◆ fromXML()
Reimplemented from Underlying.
Definition at line 81 of file underlying.cpp.
81 {
87 QL_REQUIRE(
type_ ==
"Equity",
"Underlying must be of type 'Equity'.");
89
93 }
96 } else {
98 }
100}
std::string basicUnderlyingNodeName_
virtual void fromXML(ore::data::XMLNode *node) override
static string getNodeName(XMLNode *n)
Get and set a node's name.
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static string getNodeValue(XMLNode *node)
Get a node's value.
◆ toXML()
Reimplemented from Underlying.
Definition at line 102 of file underlying.cpp.
102 {
106 } else {
114 }
115 return node;
116}
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
rapidxml::xml_node< char > XMLNode
◆ equityName_
◆ identifierType_
std::string identifierType_ |
|
private |
◆ currency_
◆ exchange_