Serializable object holding generic trade actions. More...
#include <ored/portfolio/tradeactions.hpp>
Public Member Functions | |
TradeActions (const vector< TradeAction > &actions=vector< TradeAction >()) | |
void | addAction (const TradeAction &action) |
const vector< TradeAction > & | actions () const |
bool | empty () const |
Returns true of this set of actions is empty. More... | |
void | clear () |
Clear the trade actions. More... | |
virtual void | fromXML (XMLNode *node) override |
virtual 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 | |
vector< TradeAction > | actions_ |
Serializable object holding generic trade actions.
Definition at line 71 of file tradeactions.hpp.
TradeActions | ( | const vector< TradeAction > & | actions = vector<TradeAction>() | ) |
Definition at line 73 of file tradeactions.hpp.
void addAction | ( | const TradeAction & | action | ) |
Definition at line 75 of file tradeactions.hpp.
const vector< TradeAction > & actions | ( | ) | const |
Definition at line 77 of file tradeactions.hpp.
bool empty | ( | ) | const |
Returns true of this set of actions is empty.
Definition at line 80 of file tradeactions.hpp.
void clear | ( | ) |
Clear the trade actions.
Definition at line 83 of file tradeactions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 42 of file tradeactions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 50 of file tradeactions.cpp.
|
private |
Definition at line 89 of file tradeactions.hpp.