QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
southkorea.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2004 FIMAT Group
5 Copyright (C) 2007 StatPro Italia srl
6 Copyright (C) 2008 Charles Chongseok Hyun
7 Copyright (C) 2015 Riccardo Barone
8
9 This file is part of QuantLib, a free-software/open-source library
10 for financial quantitative analysts and developers - http://quantlib.org/
11
12 QuantLib is free software: you can redistribute it and/or modify it
13 under the terms of the QuantLib license. You should have received a
14 copy of the license along with this program; if not, please email
15 <quantlib-dev@lists.sf.net>. The license is also available online at
16 <http://quantlib.org/license.shtml>.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the license for more details.
21*/
22
27#ifndef quantlib_south_korean_calendar_hpp
28#define quantlib_south_korean_calendar_hpp
29
30#include <ql/time/calendar.hpp>
31
32namespace QuantLib {
33
35
77 class SouthKorea : public Calendar {
78 private:
80 public:
81 std::string name() const override { return "South-Korean settlement"; }
82 bool isWeekend(Weekday) const override;
83 bool isBusinessDay(const Date&) const override;
84 };
85 class KrxImpl final : public SettlementImpl {
86 public:
87 std::string name() const override { return "South-Korea exchange"; }
88 bool isBusinessDay(const Date&) const override;
89 };
90 public:
92 KRX
93 };
95 };
96
97}
98
99
100#endif
abstract base class for calendar implementations
Definition: calendar.hpp:64
calendar class
Definition: calendar.hpp:61
Concrete date class.
Definition: date.hpp:125
bool isBusinessDay(const Date &) const override
Definition: southkorea.cpp:272
std::string name() const override
Definition: southkorea.hpp:87
bool isBusinessDay(const Date &) const override
Definition: southkorea.cpp:53
std::string name() const override
Definition: southkorea.hpp:81
bool isWeekend(Weekday) const override
Definition: southkorea.cpp:49
South Korean calendars.
Definition: southkorea.hpp:77
@ KRX
Korea exchange.
Definition: southkorea.hpp:92
@ Settlement
Public holidays.
Definition: southkorea.hpp:91
Definition: any.hpp:35