/src/quantlib/ql/time/calendars/czechrepublic.hpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | |
3 | | /* |
4 | | Copyright (C) 2005 StatPro Italia srl |
5 | | |
6 | | This file is part of QuantLib, a free-software/open-source library |
7 | | for financial quantitative analysts and developers - http://quantlib.org/ |
8 | | |
9 | | QuantLib is free software: you can redistribute it and/or modify it |
10 | | under the terms of the QuantLib license. You should have received a |
11 | | copy of the license along with this program; if not, please email |
12 | | <quantlib-dev@lists.sf.net>. The license is also available online at |
13 | | <https://www.quantlib.org/license.shtml>. |
14 | | |
15 | | This program is distributed in the hope that it will be useful, but WITHOUT |
16 | | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
17 | | FOR A PARTICULAR PURPOSE. See the license for more details. |
18 | | */ |
19 | | |
20 | | /*! \file czechrepublic.hpp |
21 | | \brief Czech calendars |
22 | | */ |
23 | | |
24 | | #ifndef quantlib_czech_calendar_hpp |
25 | | #define quantlib_czech_calendar_hpp |
26 | | |
27 | | #include <ql/time/calendar.hpp> |
28 | | |
29 | | namespace QuantLib { |
30 | | |
31 | | //! Czech calendars |
32 | | /*! Holidays for the Prague stock exchange (see http://www.pse.cz/): |
33 | | <ul> |
34 | | <li>Saturdays</li> |
35 | | <li>Sundays</li> |
36 | | <li>New Year's Day, January 1st</li> |
37 | | <li>Easter Monday</li> |
38 | | <li>Labour Day, May 1st</li> |
39 | | <li>Liberation Day, May 8th</li> |
40 | | <li>SS. Cyril and Methodius, July 5th</li> |
41 | | <li>Jan Hus Day, July 6th</li> |
42 | | <li>Czech Statehood Day, September 28th</li> |
43 | | <li>Independence Day, October 28th</li> |
44 | | <li>Struggle for Freedom and Democracy Day, November 17th</li> |
45 | | <li>Christmas Eve, December 24th</li> |
46 | | <li>Christmas, December 25th</li> |
47 | | <li>St. Stephen, December 26th</li> |
48 | | </ul> |
49 | | |
50 | | \ingroup calendars |
51 | | */ |
52 | | class CzechRepublic : public Calendar { |
53 | | private: |
54 | | class PseImpl final : public Calendar::WesternImpl { |
55 | | public: |
56 | 0 | std::string name() const override { return "Prague stock exchange"; } |
57 | | bool isBusinessDay(const Date&) const override; |
58 | | }; |
59 | | public: |
60 | | enum Market { PSE //!< Prague stock exchange |
61 | | }; |
62 | | CzechRepublic(Market m = PSE); |
63 | | }; |
64 | | |
65 | | } |
66 | | |
67 | | |
68 | | #endif |