Serializable object holding a trade action. More...
#include <ored/portfolio/tradeactions.hpp>
Public Member Functions | |
TradeAction () | |
Default constructor. More... | |
TradeAction (const string &type, const string &owner, const ScheduleData &schedule) | |
Constructor. More... | |
Inspectors | |
const string & | type () const |
const string & | owner () const |
const ScheduleData & | schedule () const |
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... | |
Serialisation | |
string | type_ |
string | owner_ |
ScheduleData | schedule_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Serializable object holding a trade action.
Definition at line 42 of file tradeactions.hpp.
TradeAction | ( | ) |
TradeAction | ( | const string & | type, |
const string & | owner, | ||
const ScheduleData & | schedule | ||
) |
Constructor.
Definition at line 48 of file tradeactions.hpp.
const string & type | ( | ) | const |
Definition at line 53 of file tradeactions.hpp.
const string & owner | ( | ) | const |
Definition at line 54 of file tradeactions.hpp.
const ScheduleData & schedule | ( | ) | const |
Definition at line 55 of file tradeactions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 26 of file tradeactions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 33 of file tradeactions.cpp.
|
private |
Definition at line 65 of file tradeactions.hpp.
|
private |
Definition at line 66 of file tradeactions.hpp.
|
private |
Definition at line 67 of file tradeactions.hpp.