Logo
Reference manual - version ored_version
CalendarAdjustmentConfig Class Reference
Inheritance diagram for CalendarAdjustmentConfig:

Public Member Functions

void addHolidays (const string &calname, const Date &d)
 This method adds d to the list of holidays for cal name.
void addBusinessDays (const string &calname, const Date &d)
 This method adds d to the list of business days for cal name.
void addBaseCalendar (const string &calname, const string &d)
 This method adds s as a base calendar for cal name.
const set< Date > & getHolidays (const string &calname) const
 Returns all the holidays for a given cal name.
const set< Date > & getBusinessDays (const string &calname) const
 Returns all the business days for a given calname.
set< stringgetCalendars () const
const stringgetBaseCalendar (const string &calname) const
void addCalendars ()
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
Public Member Functions inherited from XMLSerializable
void fromFile (const std::string &filename)
void toFile (const std::string &filename) const
void fromXMLString (const std::string &xml)
 Parse from XML string.
std::string toXMLString () const
 Parse from XML string.
std::string toXMLStringUnformatted () const

Member Function Documentation

◆ fromXML()

void fromXML ( XMLNode * node)
overridevirtual

Implements XMLSerializable.

◆ toXML()

XMLNode * toXML ( XMLDocument & doc) const
overridevirtual

Implements XMLSerializable.