Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
calendars
unitedarabemirates.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2022 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
#ifndef OREPLUS_UNITEDARABEMIRATES_HPP
20
#define OREPLUS_UNITEDARABEMIRATES_HPP
21
22
#include <ql/time/calendar.hpp>
23
24
namespace
QuantExt
{
25
using 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
*/
33
class
UnitedArabEmirates
:
public
Calendar {
34
private
:
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
};
41
public
:
42
UnitedArabEmirates
();
43
};
44
45
}
46
47
#endif
// OREPLUS_UNITEDARABEMIRATES_HPP
QuantExt::UnitedArabEmirates::Impl
Definition:
unitedarabemirates.hpp:35
QuantExt::UnitedArabEmirates::Impl::isBusinessDay
bool isBusinessDay(const Date &) const override
Definition:
unitedarabemirates.cpp:40
QuantExt::UnitedArabEmirates::Impl::name
std::string name() const override
Definition:
unitedarabemirates.hpp:37
QuantExt::UnitedArabEmirates::Impl::isWeekend
bool isWeekend(Weekday) const override
Definition:
unitedarabemirates.cpp:36
QuantExt::UnitedArabEmirates
Islamic Weekends-only calendar.
Definition:
unitedarabemirates.hpp:33
QuantExt::UnitedArabEmirates::UnitedArabEmirates
UnitedArabEmirates()
Definition:
unitedarabemirates.cpp:30
QuantExt
Definition:
namespaces.docs:19
QuantLib
Definition:
colombia.cpp:21
Generated by
Doxygen
1.9.5