QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
africa.cpp
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
23
24namespace QuantLib {
25
26 // Angolan kwanza
28 static ext::shared_ptr<Data> aoaData(
29 new Data("Angolan kwanza", "AOA", 973, "AOA", "", 100, Rounding(), "1$.2f %3%"));
30 data_ = aoaData;
31 }
32
33 // Botswanan pula
35 static ext::shared_ptr<Data> bwpData(
36 new Data("Botswanan pula", "BWP", 72, "P", "", 100, Rounding(), "1$.2f %3%"));
37 data_ = bwpData;
38 }
39
40 // Egyptian pound
42 static ext::shared_ptr<Data> egpData(
43 new Data("Egyptian pound", "EGP", 818, "EGP", "", 100, Rounding(), "1$.2f %3%"));
44 data_ = egpData;
45 }
46
47 // Ethiopian birr
49 static ext::shared_ptr<Data> etbData(
50 new Data("Ethiopian birr", "ETB", 230, "ETB", "", 100, Rounding(), "1$.2f %3%"));
51 data_ = etbData;
52 }
53
54 // Ghanaian cedi
56 static ext::shared_ptr<Data> ghsData(
57 new Data("Ghanaian cedi", "GHS", 936, "GHS", "", 100, Rounding(), "1$.2f %3%"));
58 data_ = ghsData;
59 }
60
61 // Kenyan shilling
63 static ext::shared_ptr<Data> kesData(
64 new Data("Kenyan shilling", "KES", 404, "KES", "", 100, Rounding(), "1$.2f %3%"));
65 data_ = kesData;
66 }
67
68 // Moroccan dirham
70 static ext::shared_ptr<Data> madData(
71 new Data("Moroccan dirham", "MAD", 504, "MAD", "", 100, Rounding(), "1$.2f %3%"));
72 data_ = madData;
73 }
74
75 // Mauritian rupee
77 static ext::shared_ptr<Data> murData(
78 new Data("Mauritian rupee", "MUR", 480, "MUR", "", 100, Rounding(), "1$.2f %3%"));
79 data_ = murData;
80 }
81
82 // Nigerian Naira
84 static ext::shared_ptr<Data> ngnData(
85 new Data("Nigerian Naira", "NGN", 566, "N", "K", 100, Rounding(), "%3% %1N.2f"));
86 data_ = ngnData;
87 }
88
89 // Tunisian dinar
91 static ext::shared_ptr<Data> tndData(
92 new Data("Tunisian dinar", "TND", 788, "TND", "", 1000, Rounding(), "1$.2f %3%"));
93 data_ = tndData;
94 }
95
96 // Ugandan shilling
98 static ext::shared_ptr<Data> ugxData(
99 new Data("Ugandan shilling", "UGX", 800, "UGX", "", 1, Rounding(), "1$.2f %3%"));
100 data_ = ugxData;
101 }
102
103 // West African CFA franc
105 static ext::shared_ptr<Data> xofData(new Data("West African CFA franc", "XOF", 952, "XOF",
106 "", 100, Rounding(), "1$.2f %3%"));
107 data_ = xofData;
108 }
109
110 // South-African rand
112 static ext::shared_ptr<Data> zarData(
113 new Data("South-African rand", "ZAR", 710, "R", "", 100, Rounding(), "%3% %1$.2f"));
114 data_ = zarData;
115 }
116
117 // Zambian kwacha
119 static ext::shared_ptr<Data> zmwData(
120 new Data("Zambian kwacha", "ZMW", 967, "ZMW", "", 100, Rounding(), "1$.2f %3%"));
121 data_ = zmwData;
122 }
123
124}
African currencies.
ext::shared_ptr< Data > data_
Definition: currency.hpp:108
basic rounding class
Definition: rounding.hpp:35
Definition: any.hpp:35