Serializable schedule data. More...
#include <ored/portfolio/schedule.hpp>
Public Member Functions | |
ScheduleData () | |
Default constructor. More... | |
ScheduleData (const ScheduleDates &dates, const string &name="") | |
Constructor with ScheduleDates. More... | |
ScheduleData (const ScheduleRules &rules, const string &name="") | |
Constructor with ScheduleRules. More... | |
ScheduleData (const ScheduleDerived &derived, const string &name="") | |
Constructor with ScheduleDerived. More... | |
void | addDates (const ScheduleDates &dates) |
Add dates. More... | |
void | addRules (const ScheduleRules &rules) |
Add rules. More... | |
void | addDerived (const ScheduleDerived &derived) |
Add derived schedules. More... | |
bool | hasData () const |
Check if has any dates/rules/derived schedules. More... | |
vector< string > | baseScheduleNames () |
Inspectors | |
const vector< ScheduleDates > & | dates () const |
const vector< ScheduleRules > & | rules () const |
const vector< ScheduleDerived > & | derived () const |
const string & | name () const |
const bool & | hasDerived () const |
Modifiers | |
vector< ScheduleDates > & | modifyDates () |
vector< ScheduleRules > & | modifyRules () |
vector< ScheduleDerived > & | modifyDerived () |
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 | |
vector< ScheduleDates > | dates_ |
vector< ScheduleRules > | rules_ |
vector< ScheduleDerived > | derived_ |
string | name_ = "" |
bool | hasDerived_ = false |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Serializable schedule data.
Definition at line 202 of file schedule.hpp.
ScheduleData | ( | ) |
ScheduleData | ( | const ScheduleDates & | dates, |
const string & | name = "" |
||
) |
Constructor with ScheduleDates.
Definition at line 207 of file schedule.hpp.
ScheduleData | ( | const ScheduleRules & | rules, |
const string & | name = "" |
||
) |
Constructor with ScheduleRules.
Definition at line 209 of file schedule.hpp.
ScheduleData | ( | const ScheduleDerived & | derived, |
const string & | name = "" |
||
) |
Constructor with ScheduleDerived.
Definition at line 211 of file schedule.hpp.
void addDates | ( | const ScheduleDates & | dates | ) |
Add dates.
Definition at line 214 of file schedule.hpp.
void addRules | ( | const ScheduleRules & | rules | ) |
Add rules.
Definition at line 216 of file schedule.hpp.
void addDerived | ( | const ScheduleDerived & | derived | ) |
Add derived schedules.
Definition at line 218 of file schedule.hpp.
bool hasData | ( | ) | const |
Check if has any dates/rules/derived schedules.
Definition at line 223 of file schedule.hpp.
vector< string > baseScheduleNames | ( | ) |
Definition at line 172 of file schedule.cpp.
const vector< ScheduleDates > & dates | ( | ) | const |
const vector< ScheduleRules > & rules | ( | ) | const |
const vector< ScheduleDerived > & derived | ( | ) | const |
const string & name | ( | ) | const |
const bool & hasDerived | ( | ) | const |
vector< ScheduleDates > & modifyDates | ( | ) |
Definition at line 237 of file schedule.hpp.
vector< ScheduleRules > & modifyRules | ( | ) |
Definition at line 238 of file schedule.hpp.
vector< ScheduleDerived > & modifyDerived | ( | ) |
Definition at line 239 of file schedule.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 179 of file schedule.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 198 of file schedule.cpp.
|
private |
Definition at line 248 of file schedule.hpp.
|
private |
Definition at line 249 of file schedule.hpp.
|
private |
Definition at line 250 of file schedule.hpp.
|
private |
Definition at line 251 of file schedule.hpp.
|
private |
Definition at line 252 of file schedule.hpp.