Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
russia.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2021 Quaternion Risk Management Ltd
5 All rights reserved.
6
7 This file is part of ORE, a free-software/open-source library
8 for transparent pricing and risk analysis - http://opensourcerisk.org
9
10 ORE is free software: you can redistribute it and/or modify it
11 under the terms of the Modified BSD License. You should have received a
12 copy of the license along with this program.
13 The license is also available online at <http://opensourcerisk.org>
14
15 This program is distributed on the basis that it will form a useful
16 contribution to risk analytics and model standardisation, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
21/*! \file russia.hpp
22 \brief Russian calendar, modified QuantLib Russia to extend MOEX before 2012
23*/
24
25#ifndef quantext_russia_modified_calendar_hpp
26#define quantext_russia_modified_calendar_hpp
27
28#include <ql/time/calendars/russia.hpp>
29
30namespace QuantExt {
31using namespace QuantLib;
32
33 //! Russian calendars
34 /*! Modified MOEX, using settlement implementation to extend before 2012.
35 \ingroup calendars
36 */
37 class RussiaModified : public Calendar {
38 private:
40 public:
42 std::string name() const override { return "Russian settlement"; }
43 bool isBusinessDay(const Date&) const override;
44 private:
46 };
48 public:
50 std::string name() const override { return "Moscow exchange, modified"; }
51 bool isBusinessDay(const Date&) const override;
52 private:
54 };
55 public:
56 RussiaModified(Russia::Market = Russia::Settlement);
57 };
58
59}
60
61
62#endif
bool isBusinessDay(const Date &) const override
Definition: russia.cpp:58
std::string name() const override
Definition: russia.hpp:50
bool isBusinessDay(const Date &) const override
Definition: russia.cpp:54
std::string name() const override
Definition: russia.hpp:42
Russian calendars.
Definition: russia.hpp:37