/src/quantlib/ql/currencies/africa.cpp
Line | Count | Source (jump to first uncovered line) |
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 | | #include <ql/currencies/africa.hpp> |
23 | | |
24 | | namespace QuantLib { |
25 | | |
26 | | // Angolan kwanza |
27 | 0 | AOACurrency::AOACurrency() { |
28 | 0 | static auto aoaData = ext::make_shared<Data>("Angolan kwanza", "AOA", 973, "AOA", "", 100, Rounding()); |
29 | 0 | data_ = aoaData; |
30 | 0 | } |
31 | | |
32 | | // Botswanan pula |
33 | 0 | BWPCurrency::BWPCurrency() { |
34 | 0 | static auto bwpData = ext::make_shared<Data>("Botswanan pula", "BWP", 72, "P", "", 100, Rounding()); |
35 | 0 | data_ = bwpData; |
36 | 0 | } |
37 | | |
38 | | // Egyptian pound |
39 | 0 | EGPCurrency::EGPCurrency() { |
40 | 0 | static auto egpData = ext::make_shared<Data>("Egyptian pound", "EGP", 818, "EGP", "", 100, Rounding()); |
41 | 0 | data_ = egpData; |
42 | 0 | } |
43 | | |
44 | | // Ethiopian birr |
45 | 0 | ETBCurrency::ETBCurrency() { |
46 | 0 | static auto etbData = ext::make_shared<Data>("Ethiopian birr", "ETB", 230, "ETB", "", 100, Rounding()); |
47 | 0 | data_ = etbData; |
48 | 0 | } |
49 | | |
50 | | // Ghanaian cedi |
51 | 0 | GHSCurrency::GHSCurrency() { |
52 | 0 | static auto ghsData = ext::make_shared<Data>("Ghanaian cedi", "GHS", 936, "GHS", "", 100, Rounding()); |
53 | 0 | data_ = ghsData; |
54 | 0 | } |
55 | | |
56 | | // Kenyan shilling |
57 | 0 | KESCurrency::KESCurrency() { |
58 | 0 | static auto kesData = ext::make_shared<Data>("Kenyan shilling", "KES", 404, "KES", "", 100, Rounding()); |
59 | 0 | data_ = kesData; |
60 | 0 | } |
61 | | |
62 | | // Moroccan dirham |
63 | 0 | MADCurrency::MADCurrency() { |
64 | 0 | static auto madData = ext::make_shared<Data>("Moroccan dirham", "MAD", 504, "MAD", "", 100, Rounding()); |
65 | 0 | data_ = madData; |
66 | 0 | } |
67 | | |
68 | | // Mauritian rupee |
69 | 0 | MURCurrency::MURCurrency() { |
70 | 0 | static auto murData = ext::make_shared<Data>("Mauritian rupee", "MUR", 480, "MUR", "", 100, Rounding()); |
71 | 0 | data_ = murData; |
72 | 0 | } |
73 | | |
74 | | // Nigerian Naira |
75 | 0 | NGNCurrency::NGNCurrency() { |
76 | 0 | static auto ngnData = ext::make_shared<Data>("Nigerian Naira", "NGN", 566, "N", "K", 100, Rounding()); |
77 | 0 | data_ = ngnData; |
78 | 0 | } |
79 | | |
80 | | // Tunisian dinar |
81 | 0 | TNDCurrency::TNDCurrency() { |
82 | 0 | static auto tndData = ext::make_shared<Data>("Tunisian dinar", "TND", 788, "TND", "", 1000, Rounding()); |
83 | 0 | data_ = tndData; |
84 | 0 | } |
85 | | |
86 | | // Ugandan shilling |
87 | 0 | UGXCurrency::UGXCurrency() { |
88 | 0 | static auto ugxData = ext::make_shared<Data>("Ugandan shilling", "UGX", 800, "UGX", "", 1, Rounding()); |
89 | 0 | data_ = ugxData; |
90 | 0 | } |
91 | | |
92 | | // West African CFA franc |
93 | 0 | XOFCurrency::XOFCurrency() { |
94 | 0 | static auto xofData = ext::make_shared<Data>("West African CFA franc", "XOF", 952, "XOF", "", 100, Rounding()); |
95 | 0 | data_ = xofData; |
96 | 0 | } |
97 | | |
98 | | // South-African rand |
99 | 0 | ZARCurrency::ZARCurrency() { |
100 | 0 | static auto zarData = ext::make_shared<Data>("South-African rand", "ZAR", 710, "R", "", 100, Rounding()); |
101 | 0 | data_ = zarData; |
102 | 0 | } |
103 | | |
104 | | // Zambian kwacha |
105 | 0 | ZMWCurrency::ZMWCurrency() { |
106 | 0 | static auto zmwData = ext::make_shared<Data>("Zambian kwacha", "ZMW", 967, "ZMW", "", 100, Rounding()); |
107 | 0 | data_ = zmwData; |
108 | 0 | } |
109 | | |
110 | | } |