Serializable Equity Option Position Data. More...
#include <ored/portfolio/equityoptionposition.hpp>
Public Member Functions | |
EquityOptionPositionData () | |
EquityOptionPositionData (const Real quantity, const std::vector< EquityOptionUnderlyingData > &underlyings) | |
Real | quantity () const |
const std::vector< EquityOptionUnderlyingData > & | underlyings () const |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
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. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Private Attributes | |
Real | quantity_ = QuantLib::Null<Real>() |
std::vector< EquityOptionUnderlyingData > | underlyings_ |
Serializable Equity Option Position Data.
Definition at line 59 of file equityoptionposition.hpp.
Definition at line 61 of file equityoptionposition.hpp.
EquityOptionPositionData | ( | const Real | quantity, |
const std::vector< EquityOptionUnderlyingData > & | underlyings | ||
) |
Definition at line 62 of file equityoptionposition.hpp.
Real quantity | ( | ) | const |
const std::vector< EquityOptionUnderlyingData > & underlyings | ( | ) | const |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 47 of file equityoptionposition.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 58 of file equityoptionposition.cpp.
|
private |
Definition at line 72 of file equityoptionposition.hpp.
|
private |
Definition at line 73 of file equityoptionposition.hpp.