Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
failedtrade.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/portfolio/failedtrade.hpp
20 \brief Skeleton trade generated when trade loading/building fails
21 \ingroup tradedata
22*/
23
24#pragma once
25
27
28namespace ore {
29namespace data {
30
31/*! Serializable skeleton trade to represent trades that failed loading or building
32 \ingroup tradedata
33*/
35public:
37
39
40 //! Trade Interface's build.
41 void build(const QuantLib::ext::shared_ptr<ore::data::EngineFactory>&) override;
42
43 //! Set the original trade
44 void setUnderlyingTradeType(const std::string& underlyingTradeType_);
45
46 //! Get the original trade
47 const std::string& underlyingTradeType() const;
48
49 //! \name Serialisation
50 //@{
51 void fromXML(ore::data::XMLNode* node) override;
53 //@}
54
55private:
57};
58
59}
60}
Serializable object holding generic trade data, reporting dimensions.
Definition: envelope.hpp:51
void fromXML(ore::data::XMLNode *node) override
Definition: failedtrade.cpp:56
void setUnderlyingTradeType(const std::string &underlyingTradeType_)
Set the original trade.
Definition: failedtrade.cpp:48
const std::string & underlyingTradeType() const
Get the original trade.
Definition: failedtrade.cpp:52
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
Definition: failedtrade.cpp:60
void build(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &) override
Trade Interface's build.
Definition: failedtrade.cpp:40
std::string underlyingTradeType_
Definition: failedtrade.hpp:56
Trade base class.
Definition: trade.hpp:55
Small XML Document wrapper class.
Definition: xmlutils.hpp:65
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23
base trade data model and serialization