QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
africa.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) 2004, 2005 StatPro Italia srl
5 Copyright (C) 2016 Quaternion Risk Management Ltd
6 Copyright (C) 2023 Skandinaviska Enskilda Banken AB (publ)
7
8 This file is part of QuantLib, a free-software/open-source library
9 for financial quantitative analysts and developers - http://quantlib.org/
10
11 QuantLib is free software: you can redistribute it and/or modify it
12 under the terms of the QuantLib license. You should have received a
13 copy of the license along with this program; if not, please email
14 <quantlib-dev@lists.sf.net>. The license is also available online at
15 <http://quantlib.org/license.shtml>.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the license for more details.
20*/
21
22/*! \file africa.hpp
23 \brief African currencies
24
25 See <https://www.thefinancials.com/Default.aspx?SubSectionID=curformat>.
26*/
27
28#ifndef quantlib_african_currencies_hpp
29#define quantlib_african_currencies_hpp
30
31#include <ql/currency.hpp>
32
33#if defined(QL_PATCH_MSVC)
34#pragma warning(push)
35#pragma warning(disable:4819)
36#endif
37
38namespace QuantLib {
39
40 // Angolan kwanza
41 /*! The ISO three-letter code is AOA; the numeric code is 973.
42 It is divided into 100 cĂȘntimo.
43 \ingroup currencies
44 */
45 class AOACurrency : public Currency {
46 public:
48 };
49
50 // Botswanan Pula
51 /*! The ISO three-letter code is BWP; the numeric code is 72.
52 It is divided into 100 thebe.
53 \ingroup currencies
54 */
55 class BWPCurrency : public Currency {
56 public:
58 };
59
60 //! Egyptian pound
61 /*! The ISO three-letter code is EGP; the numeric code is 818.
62 It is divided into 100 piastres.
63 \ingroup currencies
64 */
65 class EGPCurrency : public Currency {
66 public:
68 };
69
70 // Ethiopian birr
71 /*! The ISO three-letter code is ETB; the numeric code is 230.
72 It is divided into 100 santim.
73 \ingroup currencies
74 */
75 class ETBCurrency : public Currency {
76 public:
78 };
79
80 //! Ghanaian cedi
81 /*! The ISO three-letter code is GHS; the numeric code is 936.
82 It is divided into 100 pesewas.
83 \ingroup currencies
84 */
85 class GHSCurrency : public Currency {
86 public:
88 };
89
90 //! Kenyan shilling
91 /*! The ISO three-letter code is KES; the numeric code is 404.
92 It is divided into 100 cents.
93 \ingroup currencies
94 */
95 class KESCurrency : public Currency {
96 public:
98 };
99
100 //! Moroccan dirham
101 /*! The ISO three-letter code is MAD; the numeric code is 504.
102 It is divided into 100 santim.
103 \ingroup currencies
104 */
105 class MADCurrency : public Currency {
106 public:
107 MADCurrency();
108 };
109
110 //! Mauritian rupee
111 /*! The ISO three-letter code is MUR; the numeric code is 480.
112 It is divided into 100 cents.
113 \ingroup currencies
114 */
115 class MURCurrency : public Currency {
116 public:
117 MURCurrency();
118 };
119
120 //! Nigerian Naira
121 /*! The ISO three-letter code is NGN; the numeric code is 566.
122 It is divided into 100 kobo.
123 \ingroup currencies
124 */
125 class NGNCurrency : public Currency {
126 public:
127 NGNCurrency();
128 };
129
130 //! Tunisian dinar
131 /*! The ISO three-letter code is TND; the numeric code is 788.
132 It is divided into 1000 millim.
133 \ingroup currencies
134 */
135 class TNDCurrency : public Currency {
136 public:
137 TNDCurrency();
138 };
139
140 //! Ugandan shilling
141 /*! The ISO three-letter code is UGX; the numeric code is 800.
142 It is the smallest unit.
143 \ingroup currencies
144 */
145 class UGXCurrency : public Currency {
146 public:
147 UGXCurrency();
148 };
149
150 // West African CFA franc
151 /*! The ISO three-letter code is XOF; the numeric code is 952.
152 It is divided into 100 centime.
153 \ingroup currencies
154 */
155 class XOFCurrency : public Currency {
156 public:
157 XOFCurrency();
158 };
159
160 //! South-African rand
161 /*! The ISO three-letter code is ZAR; the numeric code is 710.
162 It is divided into 100 cents.
163
164 \ingroup currencies
165 */
166 class ZARCurrency : public Currency {
167 public:
168 ZARCurrency();
169 };
170
171 //! Zambian kwacha
172 /*! The ISO three-letter code is ZMW; the numeric code is 967.
173 It is divided into 100 ngwee.
174 \ingroup currencies
175 */
176 class ZMWCurrency : public Currency {
177 public:
178 ZMWCurrency();
179 };
180
181}
182
183#if defined(QL_PATCH_MSVC)
184#pragma warning(pop)
185#endif
186
187#endif
Currency specification
Definition: currency.hpp:36
Egyptian pound.
Definition: africa.hpp:65
Ghanaian cedi.
Definition: africa.hpp:85
Kenyan shilling.
Definition: africa.hpp:95
Moroccan dirham.
Definition: africa.hpp:105
Mauritian rupee.
Definition: africa.hpp:115
Nigerian Naira.
Definition: africa.hpp:125
Tunisian dinar.
Definition: africa.hpp:135
Ugandan shilling.
Definition: africa.hpp:145
South-African rand.
Definition: africa.hpp:166
Zambian kwacha.
Definition: africa.hpp:176
Currency specification.
Definition: any.hpp:35