Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
currencyconfig.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2021 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file ored/utilities/calendaradjustmentconfig.hpp
20 \brief Interface for calendar modifications, additional holidays and business days
21 \ingroup utilities
22*/
23
24#pragma once
25
26#include <map>
29#include <ql/patterns/singleton.hpp>
30#include <ql/currency.hpp>
31#include <ql/utilities/dataparsers.hpp>
32#include <set>
33#include <string>
34#include <vector>
35
36namespace ore {
37namespace data {
39using QuantLib::Currency;
40using std::map;
41using std::set;
42using std::string;
43using std::vector;
44
45//! Currency configuration
46/*!
47 Allows reading a list of currency specifications from XML rather than hard coding each in QuantExt/QuantLib
48*/
50public:
51 // default constructor
53
54 //! check out any configured currencies
55 const vector<ConfigurableCurrency>& getCurrencies() const { return currencies_; }
56
57 void fromXML(XMLNode* node) override;
58 XMLNode* toXML(XMLDocument& doc) const override;
59
60private:
61 vector<ConfigurableCurrency> currencies_;
62};
63
64} // namespace data
65} // namespace ore
Currency configuration.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const vector< ConfigurableCurrency > & getCurrencies() const
check out any configured currencies
vector< ConfigurableCurrency > currencies_
Small XML Document wrapper class.
Definition: xmlutils.hpp:65
Base class for all serializable classes.
Definition: xmlutils.hpp:101
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23
XML utility functions.