Serializable object holding schedule Rules data. More...
#include <ored/portfolio/schedule.hpp>
Public Member Functions | |
ScheduleRules () | |
Default constructor. More... | |
ScheduleRules (const string &startDate, const string &endDate, const string &tenor, const string &calendar, const string &convention, const string &termConvention, const string &rule, const string &endOfMonth="N", const string &firstDate="", const string &lastDate="", const bool removeFirstDate=false, const bool removeLastDate=false, const string &endOfMonthConvention="") | |
const bool | hasData () const |
Check if key attributes are empty. More... | |
Inspectors | |
const string & | startDate () const |
const string & | endDate () const |
const string & | tenor () const |
const string & | calendar () const |
const string & | convention () const |
const string & | termConvention () const |
const string & | rule () const |
const string & | endOfMonth () const |
const string & | endOfMonthConvention () const |
const string & | firstDate () const |
const string & | lastDate () const |
bool | removeFirstDate () const |
bool | removeLastDate () const |
Modifiers | |
string & | modifyStartDate () |
string & | modifyEndDate () |
string & | modifyCalendar () |
string & | modifyConvention () |
string & | modifyTermConvention () |
string & | modifyEndOfMonthConvention () |
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 | startDate_ |
string | endDate_ |
string | tenor_ |
string | calendar_ |
string | convention_ |
string | termConvention_ |
string | rule_ |
string | endOfMonth_ |
string | endOfMonthConvention_ |
string | firstDate_ |
string | lastDate_ |
bool | adjustEndDateToPreviousMonthEnd_ {false} |
bool | removeFirstDate_ = false |
bool | removeLastDate_ = false |
bool | was1T_ = false |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
Serializable object holding schedule Rules data.
Definition at line 37 of file schedule.hpp.
ScheduleRules | ( | ) |
ScheduleRules | ( | const string & | startDate, |
const string & | endDate, | ||
const string & | tenor, | ||
const string & | calendar, | ||
const string & | convention, | ||
const string & | termConvention, | ||
const string & | rule, | ||
const string & | endOfMonth = "N" , |
||
const string & | firstDate = "" , |
||
const string & | lastDate = "" , |
||
const bool | removeFirstDate = false , |
||
const bool | removeLastDate = false , |
||
const string & | endOfMonthConvention = "" |
||
) |
Definition at line 42 of file schedule.hpp.
const bool hasData | ( | ) | const |
const string & startDate | ( | ) | const |
Definition at line 57 of file schedule.hpp.
const string & endDate | ( | ) | const |
Definition at line 59 of file schedule.hpp.
const string & tenor | ( | ) | const |
Definition at line 60 of file schedule.hpp.
const string & calendar | ( | ) | const |
Definition at line 61 of file schedule.hpp.
const string & convention | ( | ) | const |
Definition at line 62 of file schedule.hpp.
const string & termConvention | ( | ) | const |
Definition at line 63 of file schedule.hpp.
const string & rule | ( | ) | const |
Definition at line 64 of file schedule.hpp.
const string & endOfMonth | ( | ) | const |
Definition at line 65 of file schedule.hpp.
const string & endOfMonthConvention | ( | ) | const |
Definition at line 66 of file schedule.hpp.
const string & firstDate | ( | ) | const |
Definition at line 67 of file schedule.hpp.
const string & lastDate | ( | ) | const |
Definition at line 68 of file schedule.hpp.
bool removeFirstDate | ( | ) | const |
Definition at line 69 of file schedule.hpp.
bool removeLastDate | ( | ) | const |
Definition at line 70 of file schedule.hpp.
string & modifyStartDate | ( | ) |
Definition at line 75 of file schedule.hpp.
string & modifyEndDate | ( | ) |
Definition at line 76 of file schedule.hpp.
string & modifyCalendar | ( | ) |
Definition at line 77 of file schedule.hpp.
string & modifyConvention | ( | ) |
Definition at line 78 of file schedule.hpp.
string & modifyTermConvention | ( | ) |
Definition at line 79 of file schedule.hpp.
string & modifyEndOfMonthConvention | ( | ) |
Definition at line 80 of file schedule.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 75 of file schedule.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 102 of file schedule.cpp.
|
private |
Definition at line 89 of file schedule.hpp.
|
private |
Definition at line 90 of file schedule.hpp.
|
private |
Definition at line 91 of file schedule.hpp.
|
private |
Definition at line 92 of file schedule.hpp.
|
private |
Definition at line 93 of file schedule.hpp.
|
private |
Definition at line 94 of file schedule.hpp.
|
private |
Definition at line 95 of file schedule.hpp.
|
private |
Definition at line 96 of file schedule.hpp.
|
private |
Definition at line 97 of file schedule.hpp.
|
private |
Definition at line 98 of file schedule.hpp.
|
private |
Definition at line 99 of file schedule.hpp.
|
private |
Definition at line 100 of file schedule.hpp.
|
private |
Definition at line 101 of file schedule.hpp.
|
private |
Definition at line 102 of file schedule.hpp.
|
private |
Definition at line 103 of file schedule.hpp.