QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
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 auto aoaData = ext::make_shared<Data>("Angolan kwanza", "AOA", 973, "AOA", "", 100, Rounding());
29 data_ = aoaData;
30 }
31
32 // Botswanan pula
34 static auto bwpData = ext::make_shared<Data>("Botswanan pula", "BWP", 72, "P", "", 100, Rounding());
35 data_ = bwpData;
36 }
37
38 // Egyptian pound
40 static auto egpData = ext::make_shared<Data>("Egyptian pound", "EGP", 818, "EGP", "", 100, Rounding());
41 data_ = egpData;
42 }
43
44 // Ethiopian birr
46 static auto etbData = ext::make_shared<Data>("Ethiopian birr", "ETB", 230, "ETB", "", 100, Rounding());
47 data_ = etbData;
48 }
49
50 // Ghanaian cedi
52 static auto ghsData = ext::make_shared<Data>("Ghanaian cedi", "GHS", 936, "GHS", "", 100, Rounding());
53 data_ = ghsData;
54 }
55
56 // Kenyan shilling
58 static auto kesData = ext::make_shared<Data>("Kenyan shilling", "KES", 404, "KES", "", 100, Rounding());
59 data_ = kesData;
60 }
61
62 // Moroccan dirham
64 static auto madData = ext::make_shared<Data>("Moroccan dirham", "MAD", 504, "MAD", "", 100, Rounding());
65 data_ = madData;
66 }
67
68 // Mauritian rupee
70 static auto murData = ext::make_shared<Data>("Mauritian rupee", "MUR", 480, "MUR", "", 100, Rounding());
71 data_ = murData;
72 }
73
74 // Nigerian Naira
76 static auto ngnData = ext::make_shared<Data>("Nigerian Naira", "NGN", 566, "N", "K", 100, Rounding());
77 data_ = ngnData;
78 }
79
80 // Tunisian dinar
82 static auto tndData = ext::make_shared<Data>("Tunisian dinar", "TND", 788, "TND", "", 1000, Rounding());
83 data_ = tndData;
84 }
85
86 // Ugandan shilling
88 static auto ugxData = ext::make_shared<Data>("Ugandan shilling", "UGX", 800, "UGX", "", 1, Rounding());
89 data_ = ugxData;
90 }
91
92 // West African CFA franc
94 static auto xofData = ext::make_shared<Data>("West African CFA franc", "XOF", 952, "XOF", "", 100, Rounding());
95 data_ = xofData;
96 }
97
98 // South-African rand
100 static auto zarData = ext::make_shared<Data>("South-African rand", "ZAR", 710, "R", "", 100, Rounding());
101 data_ = zarData;
102 }
103
104 // Zambian kwacha
106 static auto zmwData = ext::make_shared<Data>("Zambian kwacha", "ZMW", 967, "ZMW", "", 100, Rounding());
107 data_ = zmwData;
108 }
109
110}
African currencies.
ext::shared_ptr< Data > data_
Definition: currency.hpp:85
basic rounding class
Definition: rounding.hpp:35
Definition: any.hpp:37