Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
israel.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2019 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/israel.hpp
20 \brief Israel calendar extension to cover TELBOR publication days
21*/
22
23#ifndef quantext_israel_calendar_hpp
24#define quantext_israel_calendar_hpp
25
26#include <ql/time/calendar.hpp>
27#include <ql/time/calendars/israel.hpp>
28
29namespace QuantExt {
30
31//! Israel calendar
32/*! Extend Israel calendar to cover TELBOR publication dates as described at:
33 https://www.boi.org.il/en/Markets/TelborMarket/Documents/telbordef_eng.pdf
34 Telbor holidays 2019, 2020:
35 https://www.boi.org.il/en/Markets/TelborMarket/Documents/NoTelborRates2019.pdf
36 https://www.boi.org.il/en/Markets/TelborMarket/Documents/NoTelborRates2020.pdf
37
38 \ingroup calendars
39*/
40class Israel : public QuantLib::Israel {
41
42private:
43 class TelborImpl : public Calendar::Impl {
44 public:
45 std::string name() const override { return "Israel Telbor Implementation"; }
46 bool isWeekend(QuantLib::Weekday w) const override;
47 bool isBusinessDay(const QuantLib::Date& date) const override;
48 };
49
50public:
52 Israel(MarketExt market = Telbor);
53};
54
55} // namespace QuantExt
56
57#endif
bool isWeekend(QuantLib::Weekday w) const override
Definition: israel.cpp:36
std::string name() const override
Definition: israel.hpp:45
bool isBusinessDay(const QuantLib::Date &date) const override
Definition: israel.cpp:38
Israel calendar.
Definition: israel.hpp:40