45 void build(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>&)
override;
46 QuantLib::Real
notional()
const override;
49 std::map<ore::data::AssetClass, std::set<std::string>>
50 underlyingIndices(
const QuantLib::ext::shared_ptr<ore::data::ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
63 const std::map<std::string,boost::any>&
additionalData()
const override;
66 QuantLib::ext::shared_ptr<ore::data::LegData>
createLegData()
const {
return QuantLib::ext::make_shared<ore::data::LegData>(); }
72 void buildLeg(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>& ef,
const std::vector< ore::data::LegData > & legData() const
void buildLeg(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &ef, const ore::data::LegData &legDatum, const std::string &configuration)
std::vector< ore::data::LegData > legData_
virtual void fromXML(ore::data::XMLNode *node) override
QuantLib::Real notional() const override
Return the current notional in npvCurrency. See individual sub-classes for the precise definition.
CommoditySwap(const ore::data::Envelope &env, const std::vector< ore::data::LegData > &legs)
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
QuantLib::ext::shared_ptr< ore::data::LegData > createLegData() const
void build(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &) override
std::map< ore::data::AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ore::data::ReferenceDataManager > &referenceDataManager=nullptr) const override
Add underlying Commodity names.
const std::map< std::string, boost::any > & additionalData() const override
returns all additional data returned by the trade once built
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding leg data.
const std::vector< QuantLib::Leg > & legs() const
Small XML Document wrapper class.
leg data for commodity leg types
leg data model and serialization
Serializable Credit Default Swap.
trade schedule data model and serialization
base trade data model and serialization