QuantLib
: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
ql
time
calendars
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
32
namespace
QuantLib
{
33
35
77
class
SouthKorea
:
public
Calendar
{
78
private
:
79
class
SettlementImpl
:
public
Calendar::Impl
{
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
:
91
enum
Market
{
Settlement
,
92
KRX
93
};
94
SouthKorea
(
Market
m =
KRX
);
95
};
96
97
}
98
99
100
#endif
QuantLib::Calendar::Impl
abstract base class for calendar implementations
Definition:
calendar.hpp:64
QuantLib::Calendar
calendar class
Definition:
calendar.hpp:61
QuantLib::Date
Concrete date class.
Definition:
date.hpp:125
QuantLib::SouthKorea::KrxImpl
Definition:
southkorea.hpp:85
QuantLib::SouthKorea::KrxImpl::isBusinessDay
bool isBusinessDay(const Date &) const override
Definition:
southkorea.cpp:272
QuantLib::SouthKorea::KrxImpl::name
std::string name() const override
Definition:
southkorea.hpp:87
QuantLib::SouthKorea::SettlementImpl
Definition:
southkorea.hpp:79
QuantLib::SouthKorea::SettlementImpl::isBusinessDay
bool isBusinessDay(const Date &) const override
Definition:
southkorea.cpp:53
QuantLib::SouthKorea::SettlementImpl::name
std::string name() const override
Definition:
southkorea.hpp:81
QuantLib::SouthKorea::SettlementImpl::isWeekend
bool isWeekend(Weekday) const override
Definition:
southkorea.cpp:49
QuantLib::SouthKorea
South Korean calendars.
Definition:
southkorea.hpp:77
QuantLib::SouthKorea::Market
Market
Definition:
southkorea.hpp:91
QuantLib::SouthKorea::KRX
@ KRX
Korea exchange.
Definition:
southkorea.hpp:92
QuantLib::SouthKorea::Settlement
@ Settlement
Public holidays.
Definition:
southkorea.hpp:91
QuantLib::Weekday
Weekday
Definition:
weekday.hpp:41
QuantLib
Definition:
any.hpp:35
Generated by
Doxygen
1.9.5