Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
calendars
greece.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2021 Quaternion Risk Management Ltd
3
All rights reserved.
4
5
This file is part of ORE, a free-software/open-source library
6
for transparent pricing and risk analysis - http://opensourcerisk.org
7
8
ORE is free software: you can redistribute it and/or modify it
9
under the terms of the Modified BSD License. You should have received a
10
copy of the license along with this program.
11
The license is also available online at <http://opensourcerisk.org>
12
13
This program is distributed on the basis that it will form a useful
14
contribution to risk analytics and model standardisation, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17
*/
18
19
/*! \file qle/calendars/greece.hpp
20
\brief Greece Calendars
21
*/
22
23
#pragma once
24
25
#include <ql/time/calendar.hpp>
26
27
namespace
QuantExt
{
28
29
//! Greece Calendar
30
/*! Public holidays (data from https://www.centralbank.cy/en/the-bank/working-hours-bank-holidays):
31
32
Fixed Dates
33
<ul>
34
<li>Saturdays</li>
35
<li>Sundays</li>
36
<li>New Year's Day, January 1st</li>
37
<li>Ephiphany Day, 6th January</li>
38
<li>Greek Independence Day, 25th March</li>
39
<li>Labour Day, 1st May</li>
40
<li>Greece National Day, 28th October</li>
41
<li>Christmas Day, December 25th</li>
42
</ul>
43
44
Variable days
45
<ul>
46
<li>Clean Monday</li>
47
<li>Good Friday</li>
48
<li>Easter Monday</li>
49
<li>Orthodox Pentecost (Whit) Monday</li>
50
</ul>
51
52
\ingroup calendars
53
54
\test the correctness of the returned results is tested
55
against a list of known holidays.
56
*/
57
class
Greece
:
public
QuantLib::Calendar {
58
private
:
59
class
Impl
:
public
QuantLib::Calendar::OrthodoxImpl
{
60
public
:
61
std::string
name
()
const override
{
return
"Greece"
; }
62
bool
isBusinessDay
(
const
QuantLib::Date&)
const override
;
63
};
64
65
public
:
66
Greece
();
67
};
68
}
// namespace QuantExt
QuantExt::Greece::Impl
Definition:
greece.hpp:59
QuantExt::Greece::Impl::isBusinessDay
bool isBusinessDay(const QuantLib::Date &) const override
Definition:
greece.cpp:31
QuantExt::Greece::Impl::name
std::string name() const override
Definition:
greece.hpp:61
QuantExt::Greece
Greece Calendar.
Definition:
greece.hpp:57
QuantExt::Greece::Greece
Greece()
Definition:
greece.cpp:25
QuantLib::Calendar::OrthodoxImpl
QuantExt
Definition:
namespaces.docs:19
Generated by
Doxygen
1.9.5