#include <ored/utilities/calendaradjustmentconfig.hpp>
Inheritance diagram for CalendarAdjustmentConfig:
Collaboration diagram for CalendarAdjustmentConfig:Public Member Functions | |
| CalendarAdjustmentConfig () | |
| void | addHolidays (const string &calname, const Date &d) |
| This method adds d to the list of holidays for cal name. More... | |
| void | addBusinessDays (const string &calname, const Date &d) |
| This method adds d to the list of business days for cal name. More... | |
| void | addBaseCalendar (const string &calname, const string &d) |
| This method adds s as a base calendar for cal name. More... | |
| const set< Date > & | getHolidays (const string &calname) const |
| Returns all the holidays for a given cal name. More... | |
| const set< Date > & | getBusinessDays (const string &calname) const |
| Returns all the business days for a given calname. More... | |
| set< string > | getCalendars () const |
| const string & | getBaseCalendar (const string &calname) const |
| void | fromXML (XMLNode *node) override |
| XMLNode * | toXML (XMLDocument &doc) const override |
| void | append (const CalendarAdjustmentConfig &c) |
| add all holidays and business days from c to this instance More... | |
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 Member Functions | |
| string | normalisedName (const string &) const |
Private Attributes | |
| map< string, string > | baseCalendars_ |
| map< string, set< Date > > | additionalHolidays_ |
| map< string, set< Date > > | additionalBusinessDays_ |
Definition at line 45 of file calendaradjustmentconfig.hpp.
Definition at line 28 of file calendaradjustmentconfig.cpp.
| void addHolidays | ( | const string & | calname, |
| const Date & | d | ||
| ) |
This method adds d to the list of holidays for cal name.
Definition at line 30 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void addBusinessDays | ( | const string & | calname, |
| const Date & | d | ||
| ) |
This method adds d to the list of business days for cal name.
Definition at line 34 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void addBaseCalendar | ( | const string & | calname, |
| const string & | d | ||
| ) |
This method adds s as a base calendar for cal name.
Definition at line 38 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const set< Date > & getHolidays | ( | const string & | calname | ) | const |
Returns all the holidays for a given cal name.
Definition at line 42 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const set< Date > & getBusinessDays | ( | const string & | calname | ) | const |
Returns all the business days for a given calname.
Definition at line 52 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| set< string > getCalendars | ( | ) | const |
Definition at line 62 of file calendaradjustmentconfig.cpp.
Here is the caller graph for this function:| const string & getBaseCalendar | ( | const string & | calname | ) | const |
Definition at line 74 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 97 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 168 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:| void append | ( | const CalendarAdjustmentConfig & | c | ) |
add all holidays and business days from c to this instance
Definition at line 86 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 84 of file calendaradjustmentconfig.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 75 of file calendaradjustmentconfig.hpp.
|
private |
Definition at line 76 of file calendaradjustmentconfig.hpp.
|
private |
Definition at line 77 of file calendaradjustmentconfig.hpp.