Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
ored
portfolio
tradebarrier.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
#pragma once
20
21
#include <
ored/utilities/xmlutils.hpp
>
22
#include <
ored/portfolio/trademonetary.hpp
>
23
24
using
ore::data::XMLNode
;
25
using
ore::data::XMLSerializable
;
26
27
namespace
ore
{
28
namespace
data
{
29
30
class
TradeBarrier
:
public
TradeMonetary
{
31
32
public
:
33
TradeBarrier
() {};
34
35
TradeBarrier
(QuantLib::Real
value
, std::string
currency
) :
TradeMonetary
(
value
,
currency
) {};
36
void
fromXML
(
XMLNode
* node);
37
XMLNode
*
toXML
(
XMLDocument
& doc);
38
};
39
40
}
// namespace data
41
}
// namespace ore
ore::data::TradeBarrier
Definition:
tradebarrier.hpp:30
ore::data::TradeBarrier::fromXML
void fromXML(XMLNode *node)
Definition:
tradebarrier.cpp:25
ore::data::TradeBarrier::toXML
XMLNode * toXML(XMLDocument &doc)
Definition:
tradebarrier.cpp:27
ore::data::TradeBarrier::TradeBarrier
TradeBarrier(QuantLib::Real value, std::string currency)
Definition:
tradebarrier.hpp:35
ore::data::TradeBarrier::TradeBarrier
TradeBarrier()
Definition:
tradebarrier.hpp:33
ore::data::TradeMonetary
Definition:
trademonetary.hpp:31
ore::data::TradeMonetary::currency
std::string currency() const
Definition:
trademonetary.cpp:37
ore::data::TradeMonetary::value
QuantLib::Real value() const
Definition:
trademonetary.cpp:44
ore::data::XMLDocument
Small XML Document wrapper class.
Definition:
xmlutils.hpp:65
ore::data::XMLSerializable
Base class for all serializable classes.
Definition:
xmlutils.hpp:101
rapidxml::xml_node
XML Node.
Definition:
xmlutils.hpp:43
data
@ data
Definition:
log.hpp:77
ore
Serializable Credit Default Swap.
Definition:
namespaces.docs:23
trademonetary.hpp
xmlutils.hpp
XML utility functions.
Generated by
Doxygen
1.9.5