Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
unitedarabemirates.hpp
Go to the documentation of this file.
1/*
2Copyright (C) 2022 Quaternion Risk Management Ltd
3All rights reserved.
4
5This file is part of ORE, a free-software/open-source library
6for transparent pricing and risk analysis - http://opensourcerisk.org
7
8ORE is free software: you can redistribute it and/or modify it
9under the terms of the Modified BSD License. You should have received a
10copy of the license along with this program.
11The license is also available online at <http://opensourcerisk.org>
12
13This program is distributed on the basis that it will form a useful
14contribution to risk analytics and model standardisation, but WITHOUT
15ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19#ifndef OREPLUS_UNITEDARABEMIRATES_HPP
20#define OREPLUS_UNITEDARABEMIRATES_HPP
21
22#include <ql/time/calendar.hpp>
23
24namespace QuantExt {
25using namespace QuantLib;
26
27//! Islamic Weekends-only calendar
28/*! This calendar has no bank holidays except for UAE weekends
29 (Saturdays and Sundays starting from 01.01.2022).
30
31 \ingroup calendars
32*/
33class UnitedArabEmirates : public Calendar {
34private:
35 class Impl : public Calendar::Impl {
36 public:
37 std::string name() const override { return "United Arab Emirates"; }
38 bool isWeekend(Weekday) const override;
39 bool isBusinessDay(const Date&) const override;
40 };
41public:
43};
44
45}
46
47#endif // OREPLUS_UNITEDARABEMIRATES_HPP
bool isBusinessDay(const Date &) const override
std::string name() const override
bool isWeekend(Weekday) const override
Islamic Weekends-only calendar.