27#include <ql/cashflows/cpicoupon.hpp>
44 const QuantLib::Real
weight = QuantLib::Null<QuantLib::Real>());
64 virtual const std::string&
name()
const {
return name_; }
70 Real
weight_ = QuantLib::Null<QuantLib::Real>();
199 const QuantLib::CPI::InterpolationType&
interpolation = QuantLib::CPI::InterpolationType::Flat)
261 const std::string& basicUnderlyingNodeName =
"Name")
BasicUnderlying(const std::string &name)
Constructor with identifier.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
BasicUnderlying()
Default Constructor.
void setBondName()
set name of bond
const std::string & identifierType() const
BondUnderlying(const std::string &identifier, const std::string &identifierType, const QuantLib::Real weight)
Constructor with identifer infomation (e.g. identifier = DE00001142867, identifierType = ISIN)
std::string identifierType_
double bidAskAdjustment() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const std::string & name() const override
BondUnderlying(const std::string &name)
Constructor with full bond name (e.g. ISIN:DE00001142867)
BondUnderlying()
Default constructor.
QuantLib::Size deliveryRollDays() const
const std::string & deliveryRollCalendar() const
QuantLib::Size deliveryRollDays_
const std::string & priceType() const
std::string futureExpiryDate_
CommodityUnderlying()
Default Constructor.
const std::string & futureExpiryDate() const
QuantLib::Size futureMonthOffset_
std::string futureContractMonth_
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
std::string deliveryRollCalendar_
const std::string & futureContractMonth() const
QuantLib::Size futureMonthOffset() const
CommodityUnderlying(const std::string &name, const QuantLib::Real weight, const std::string &priceType, const QuantLib::Size futureMonthOffset, const QuantLib::Size deliveryRollDays, const std::string &deliveryRollCalendar)
Constructor with identifier information.
CreditUnderlying(const std::string &type, const std::string &name, const QuantLib::Real weight)
Constructor with identifier information.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
CreditUnderlying()
Default Constructor.
void setEquityName()
set name of equity
const std::string & currency() const
const std::string & identifierType() const
std::string identifierType_
EquityUnderlying(const std::string &equityName)
Constructor with equity name.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const std::string & name() const override
EquityUnderlying()
Default constructor.
EquityUnderlying(const std::string &name, const std::string &identifierType, const std::string ¤cy, const std::string &exchange, const QuantLib::Real weight)
Constructor with identifier information.
const std::string & exchange() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
FXUnderlying()
Default Constructor.
FXUnderlying(const std::string &type, const std::string &name, const QuantLib::Real weight)
Constructor with identifier information.
QuantLib::CPI::InterpolationType interpolation_
const QuantLib::CPI::InterpolationType & interpolation() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
InflationUnderlying()
Default Constructor.
InflationUnderlying(const std::string &type, const std::string &name, const QuantLib::Real weight, const QuantLib::CPI::InterpolationType &interpolation=QuantLib::CPI::InterpolationType::Flat)
Constructor with identifier information.
InterestRateUnderlying()
Default Constructor.
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
InterestRateUnderlying(const std::string &type, const std::string &name, const QuantLib::Real weight)
Constructor with identifier information.
const QuantLib::ext::shared_ptr< Underlying > & underlying()
void fromXML(XMLNode *node) override
QuantLib::ext::shared_ptr< Underlying > underlying_
UnderlyingBuilder(const std::string &nodeName="Underlying", const std::string &basicUnderlyingNodeName="Name")
XMLNode * toXML(ore::data::XMLDocument &doc) const override
const std::string nodeName_
const std::string basicUnderlyingNodeName_
Class to hold Underlyings.
std::string basicUnderlyingNodeName_
void setNodeName(const string &nodeName)
const std::string & type() const
virtual void fromXML(ore::data::XMLNode *node) override
void setName(const string &name)
virtual const std::string & name() const
Underlying()
Default Constructor.
void setWeight(const QuantLib::Real weight)
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
void setBasicUnderlyingNodeName(const string &basicUnderlyingNodeName)
void setType(const string &type)
Small XML Document wrapper class.
Base class for all serializable classes.
Serializable Credit Default Swap.
trade schedule data model and serialization