Definition at line 32 of file wmr.hpp.
◆ name()
std::string name |
( |
| ) |
const |
|
override |
Definition at line 34 of file wmr.hpp.
34{ return "Thomson Reuters QM/Reuters Spot"; }
◆ isBusinessDay()
bool isBusinessDay |
( |
const QuantLib::Date & |
| ) |
const |
|
override |
Definition at line 31 of file wmr.cpp.
31 {
32 Weekday w = date.weekday();
33 Day d = date.dayOfMonth(), dd = date.dayOfYear();
34 Month m = date.month();
35 Year y = date.year();
36 Day em = easterMonday(y);
37 if (isWeekend(w)
38
39 || ((d == 1 || ((d == 2 || d == 3) && w == Monday)) && m == January)
40
41 || (dd == em)
42
43 || ((d == 25 || ((d == 26 || d == 27) && w == Monday)) && m == December))
44 return false;
45 return true;
46}