QuantLib
: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
ql
currencies
asia.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
7
This file is part of QuantLib, a free-software/open-source library
8
for financial quantitative analysts and developers - http://quantlib.org/
9
10
QuantLib is free software: you can redistribute it and/or modify it
11
under the terms of the QuantLib license. You should have received a
12
copy of the license along with this program; if not, please email
13
<quantlib-dev@lists.sf.net>. The license is also available online at
14
<http://quantlib.org/license.shtml>.
15
16
This program is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18
FOR A PARTICULAR PURPOSE. See the license for more details.
19
*/
20
21
/*! \file asia.hpp
22
\brief Asian currencies
23
24
Data from http://fx.sauder.ubc.ca/currency_table.html
25
and http://www.thefinancials.com/vortex/CurrencyFormats.html
26
*/
27
28
#ifndef quantlib_asian_currencies_hpp
29
#define quantlib_asian_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
38
namespace
QuantLib
{
39
40
//! Bangladesh taka
41
/*! The ISO three-letter code is BDT; the numeric code is 50.
42
It is divided in 100 paisa.
43
44
\ingroup currencies
45
*/
46
class
BDTCurrency
:
public
Currency
{
47
public
:
48
BDTCurrency
();
49
};
50
51
//! Chinese yuan
52
/*! The ISO three-letter code is CNY; the numeric code is 156.
53
It is divided in 100 fen.
54
55
\ingroup currencies
56
*/
57
class
CNYCurrency
:
public
Currency
{
58
public
:
59
CNYCurrency
();
60
};
61
62
//! Hong Kong dollar
63
/*! The ISO three-letter code is HKD; the numeric code is 344.
64
It is divided in 100 cents.
65
66
\ingroup currencies
67
*/
68
class
HKDCurrency
:
public
Currency
{
69
public
:
70
HKDCurrency
();
71
};
72
73
//! Indonesian Rupiah
74
/*! The ISO three-letter code is IDR; the numeric code is 360.
75
It is divided in 100 sen.
76
77
\ingroup currencies
78
*/
79
class
IDRCurrency
:
public
Currency
{
80
public
:
81
IDRCurrency
();
82
};
83
84
//! Israeli shekel
85
/*! The ISO three-letter code is ILS; the numeric code is 376.
86
It is divided in 100 agorot.
87
88
\ingroup currencies
89
*/
90
class
ILSCurrency
:
public
Currency
{
91
public
:
92
ILSCurrency
();
93
};
94
95
//! Indian rupee
96
/*! The ISO three-letter code is INR; the numeric code is 356.
97
It is divided in 100 paise.
98
99
\ingroup currencies
100
*/
101
class
INRCurrency
:
public
Currency
{
102
public
:
103
INRCurrency
();
104
};
105
106
//! Iraqi dinar
107
/*! The ISO three-letter code is IQD; the numeric code is 368.
108
It is divided in 1000 fils.
109
110
\ingroup currencies
111
*/
112
class
IQDCurrency
:
public
Currency
{
113
public
:
114
IQDCurrency
();
115
};
116
117
//! Iranian rial
118
/*! The ISO three-letter code is IRR; the numeric code is 364.
119
It has no subdivisions.
120
121
\ingroup currencies
122
*/
123
class
IRRCurrency
:
public
Currency
{
124
public
:
125
IRRCurrency
();
126
};
127
128
//! Japanese yen
129
/*! The ISO three-letter code is JPY; the numeric code is 392.
130
It is divided into 100 sen.
131
132
\ingroup currencies
133
*/
134
class
JPYCurrency
:
public
Currency
{
135
public
:
136
JPYCurrency
();
137
};
138
139
//! South-Korean won
140
/*! The ISO three-letter code is KRW; the numeric code is 410.
141
It is divided in 100 chon.
142
143
\ingroup currencies
144
*/
145
class
KRWCurrency
:
public
Currency
{
146
public
:
147
KRWCurrency
();
148
};
149
150
//! Kuwaiti dinar
151
/*! The ISO three-letter code is KWD; the numeric code is 414.
152
It is divided in 1000 fils.
153
154
\ingroup currencies
155
*/
156
class
KWDCurrency
:
public
Currency
{
157
public
:
158
KWDCurrency
();
159
};
160
161
class
KZTCurrency
:
public
Currency
{
162
public
:
163
KZTCurrency
();
164
};
165
166
//! Malaysian Ringgit
167
/*! The ISO three-letter code is MYR; the numeric code is 458.
168
It is divided in 100 sen.
169
170
\ingroup currencies
171
*/
172
class
MYRCurrency
:
public
Currency
{
173
public
:
174
MYRCurrency
();
175
};
176
177
//! Nepal rupee
178
/*! The ISO three-letter code is NPR; the numeric code is 524.
179
It is divided in 100 paise.
180
181
\ingroup currencies
182
*/
183
class
NPRCurrency
:
public
Currency
{
184
public
:
185
NPRCurrency
();
186
};
187
188
//! Pakistani rupee
189
/*! The ISO three-letter code is PKR; the numeric code is 586.
190
It is divided in 100 paisa.
191
192
\ingroup currencies
193
*/
194
class
PKRCurrency
:
public
Currency
{
195
public
:
196
PKRCurrency
();
197
};
198
199
//! Saudi riyal
200
/*! The ISO three-letter code is SAR; the numeric code is 682.
201
It is divided in 100 halalat.
202
203
\ingroup currencies
204
*/
205
class
SARCurrency
:
public
Currency
{
206
public
:
207
SARCurrency
();
208
};
209
210
//! %Singapore dollar
211
/*! The ISO three-letter code is SGD; the numeric code is 702.
212
It is divided in 100 cents.
213
214
\ingroup currencies
215
*/
216
class
SGDCurrency
:
public
Currency
{
217
public
:
218
SGDCurrency
();
219
};
220
221
//! Thai baht
222
/*! The ISO three-letter code is THB; the numeric code is 764.
223
It is divided in 100 stang.
224
225
\ingroup currencies
226
*/
227
class
THBCurrency
:
public
Currency
{
228
public
:
229
THBCurrency
();
230
};
231
232
//! %Taiwan dollar
233
/*! The ISO three-letter code is TWD; the numeric code is 901.
234
It is divided in 100 cents.
235
236
\ingroup currencies
237
*/
238
class
TWDCurrency
:
public
Currency
{
239
public
:
240
TWDCurrency
();
241
};
242
243
//! Vietnamese Dong
244
/*! The ISO three-letter code is VND; the numeric code is 704.
245
It was divided in 100 xu.
246
247
\ingroup currencies
248
*/
249
class
VNDCurrency
:
public
Currency
{
250
public
:
251
VNDCurrency
();
252
};
253
254
//! Qatari riyal
255
/*! The ISO three-letter code is QAR; the numeric code is 634.
256
It is divided into 100 diram.
257
\ingroup currencies
258
*/
259
class
QARCurrency
:
public
Currency
{
260
public
:
261
QARCurrency
();
262
};
263
264
//! Bahraini dinar
265
/*! The ISO three-letter code is BHD; the numeric code is 048.
266
It is divided into 1000 fils.
267
\ingroup currencies
268
*/
269
class
BHDCurrency
:
public
Currency
{
270
public
:
271
BHDCurrency
();
272
};
273
274
//! Omani rial
275
/*! The ISO three-letter code is OMR; the numeric code is 512.
276
It is divided into 1000 baisa.
277
\ingroup currencies
278
*/
279
class
OMRCurrency
:
public
Currency
{
280
public
:
281
OMRCurrency
();
282
};
283
284
//! Jordanian dinar
285
/*! The ISO three-letter code is JOD; the numeric code is 400.
286
It is divided into 100 qirshes.
287
\ingroup currencies
288
*/
289
class
JODCurrency
:
public
Currency
{
290
public
:
291
JODCurrency
();
292
};
293
294
//! United Arab Emirates dirham
295
/*! The ISO three-letter code is AED; the numeric code is 784.
296
It is divided into 100 fils.
297
\ingroup currencies
298
*/
299
class
AEDCurrency
:
public
Currency
{
300
public
:
301
AEDCurrency
();
302
};
303
304
//! Philippine peso
305
/*! The ISO three-letter code is PHP; the numeric code is 608.
306
It is divided into 100 centavo.
307
\ingroup currencies
308
*/
309
class
PHPCurrency
:
public
Currency
{
310
public
:
311
PHPCurrency
();
312
};
313
314
//! Chinese yuan (Hong Kong)
315
/*! The ISO three-letter code is CNH; there is no numeric code.
316
It is divided in 100 fen.
317
\ingroup currencies
318
*/
319
class
CNHCurrency
:
public
Currency
{
320
public
:
321
CNHCurrency
();
322
};
323
324
//! Sri Lankan rupee
325
/*! The ISO three-letter code is LKR; there numeric code is 144.
326
It is divided into 100 cents.
327
\ingroup currencies
328
*/
329
class
LKRCurrency
:
public
Currency
{
330
public
:
331
LKRCurrency
();
332
};
333
334
}
335
336
#if defined(QL_PATCH_MSVC)
337
#pragma warning(pop)
338
#endif
339
340
#endif
QuantLib::AEDCurrency
United Arab Emirates dirham.
Definition:
asia.hpp:299
QuantLib::AEDCurrency::AEDCurrency
AEDCurrency()
Definition:
asia.cpp:320
QuantLib::BDTCurrency
Bangladesh taka.
Definition:
asia.hpp:46
QuantLib::BDTCurrency::BDTCurrency
BDTCurrency()
Definition:
asia.cpp:34
QuantLib::BHDCurrency
Bahraini dinar.
Definition:
asia.hpp:269
QuantLib::BHDCurrency::BHDCurrency
BHDCurrency()
Definition:
asia.cpp:299
QuantLib::CNHCurrency
Chinese yuan (Hong Kong)
Definition:
asia.hpp:319
QuantLib::CNHCurrency::CNHCurrency
CNHCurrency()
Definition:
asia.cpp:334
QuantLib::CNYCurrency
Chinese yuan.
Definition:
asia.hpp:57
QuantLib::CNYCurrency::CNYCurrency
CNYCurrency()
Definition:
asia.cpp:47
QuantLib::Currency
Currency specification
Definition:
currency.hpp:36
QuantLib::HKDCurrency
Hong Kong dollar.
Definition:
asia.hpp:68
QuantLib::HKDCurrency::HKDCurrency
HKDCurrency()
Definition:
asia.cpp:60
QuantLib::IDRCurrency
Indonesian Rupiah.
Definition:
asia.hpp:79
QuantLib::IDRCurrency::IDRCurrency
IDRCurrency()
Definition:
asia.cpp:73
QuantLib::ILSCurrency
Israeli shekel.
Definition:
asia.hpp:90
QuantLib::ILSCurrency::ILSCurrency
ILSCurrency()
Definition:
asia.cpp:86
QuantLib::INRCurrency
Indian rupee.
Definition:
asia.hpp:101
QuantLib::INRCurrency::INRCurrency
INRCurrency()
Definition:
asia.cpp:99
QuantLib::IQDCurrency
Iraqi dinar.
Definition:
asia.hpp:112
QuantLib::IQDCurrency::IQDCurrency
IQDCurrency()
Definition:
asia.cpp:112
QuantLib::IRRCurrency
Iranian rial.
Definition:
asia.hpp:123
QuantLib::IRRCurrency::IRRCurrency
IRRCurrency()
Definition:
asia.cpp:125
QuantLib::JODCurrency
Jordanian dinar.
Definition:
asia.hpp:289
QuantLib::JODCurrency::JODCurrency
JODCurrency()
Definition:
asia.cpp:313
QuantLib::JPYCurrency
Japanese yen.
Definition:
asia.hpp:134
QuantLib::JPYCurrency::JPYCurrency
JPYCurrency()
Definition:
asia.cpp:138
QuantLib::KRWCurrency
South-Korean won.
Definition:
asia.hpp:145
QuantLib::KRWCurrency::KRWCurrency
KRWCurrency()
Definition:
asia.cpp:151
QuantLib::KWDCurrency
Kuwaiti dinar.
Definition:
asia.hpp:156
QuantLib::KWDCurrency::KWDCurrency
KWDCurrency()
Definition:
asia.cpp:164
QuantLib::KZTCurrency
Definition:
asia.hpp:161
QuantLib::KZTCurrency::KZTCurrency
KZTCurrency()
Definition:
asia.cpp:177
QuantLib::LKRCurrency
Sri Lankan rupee.
Definition:
asia.hpp:329
QuantLib::LKRCurrency::LKRCurrency
LKRCurrency()
Definition:
asia.cpp:341
QuantLib::MYRCurrency
Malaysian Ringgit.
Definition:
asia.hpp:172
QuantLib::MYRCurrency::MYRCurrency
MYRCurrency()
Definition:
asia.cpp:189
QuantLib::NPRCurrency
Nepal rupee.
Definition:
asia.hpp:183
QuantLib::NPRCurrency::NPRCurrency
NPRCurrency()
Definition:
asia.cpp:204
QuantLib::OMRCurrency
Omani rial.
Definition:
asia.hpp:279
QuantLib::OMRCurrency::OMRCurrency
OMRCurrency()
Definition:
asia.cpp:306
QuantLib::PHPCurrency
Philippine peso.
Definition:
asia.hpp:309
QuantLib::PHPCurrency::PHPCurrency
PHPCurrency()
Definition:
asia.cpp:327
QuantLib::PKRCurrency
Pakistani rupee.
Definition:
asia.hpp:194
QuantLib::PKRCurrency::PKRCurrency
PKRCurrency()
Definition:
asia.cpp:217
QuantLib::QARCurrency
Qatari riyal.
Definition:
asia.hpp:259
QuantLib::QARCurrency::QARCurrency
QARCurrency()
Definition:
asia.cpp:292
QuantLib::SARCurrency
Saudi riyal.
Definition:
asia.hpp:205
QuantLib::SARCurrency::SARCurrency
SARCurrency()
Definition:
asia.cpp:230
QuantLib::SGDCurrency
Singapore dollar
Definition:
asia.hpp:216
QuantLib::SGDCurrency::SGDCurrency
SGDCurrency()
Definition:
asia.cpp:243
QuantLib::THBCurrency
Thai baht.
Definition:
asia.hpp:227
QuantLib::THBCurrency::THBCurrency
THBCurrency()
Definition:
asia.cpp:256
QuantLib::TWDCurrency
Taiwan dollar
Definition:
asia.hpp:238
QuantLib::TWDCurrency::TWDCurrency
TWDCurrency()
Definition:
asia.cpp:269
QuantLib::VNDCurrency
Vietnamese Dong.
Definition:
asia.hpp:249
QuantLib::VNDCurrency::VNDCurrency
VNDCurrency()
Definition:
asia.cpp:282
currency.hpp
Currency specification.
QuantLib
Definition:
any.hpp:35
Generated by
Doxygen
1.9.5