11/*
2- Copyright (C) 2018, 2020 Quaternion Risk Management Ltd
2+ Copyright (C) 2023 Quaternion Risk Management Ltd
33 All rights reserved.
44
55 This file is part of ORE, a free-software/open-source library
2020#define ored_CalendarAdjustmentConfig_i
2121
2222%{
23- // put c++ declarations here
23+
2424using ore::data::CalendarAdjustmentConfig;
2525using std::map;
2626using std::set;
@@ -33,36 +33,30 @@ using QuantLib::Calendar;
3333%shared_ptr(CalendarAdjustmentConfig)
3434class CalendarAdjustmentConfig {
3535 public:
36- // default constructor
36+
3737 CalendarAdjustmentConfig ();
3838
39- // This method adds d to the list of holidays for cal name.
4039 void addHolidays (const string& calname, const Date& d);
4140
42- // This method adds d to the list of business days for cal name.
4341 void addBusinessDays (const string& calname, const Date& d);
4442
45- // This method adds s as a base calendar for cal name.
4643 void addBaseCalendar (const string& calname, const string& d);
4744
48- // Returns all the holidays for a given cal name
49- const set<Date>& getHolidays (const string& calname) const ;
45+ const set<Date>& getHolidays (const string& calname);
5046
51- // Returns all the business days for a given calname
52- const set<Date>& getBusinessDays (const string& calname) const ;
47+ const set<Date>& getBusinessDays (const string& calname);
5348
5449 set<string> getCalendars () const ;
5550
56- const string& getBaseCalendar (const string& calname) const ;
51+ const string& getBaseCalendar (const string& calname);
5752
58- // add all holidays and business days from c to this instance
5953 void append (const CalendarAdjustmentConfig& c);
6054 private:
6155 map<string, string> baseCalendars_;
6256 map<string, set<Date>> additionalHolidays_;
6357 map<string, set<Date>> additionalBusinessDays_;
6458
65- string normalisedName (const string&) const ;
59+ string normalisedName (const string&);
6660};
6761
6862
0 commit comments