23using QuantLib::CapFloor;
25using QuantLib::Period;
33 const boost::variant<QuantLib::Date, Period> &
maturity,
34 const QuantLib::ext::shared_ptr<BaseStrike>& strike)
std::string instrumentType_
Serializable cap, floor, collar.
QuantLib::CapFloor::Type type_
QuantLib::ext::shared_ptr< BaseStrike > strike_
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const QuantLib::ext::shared_ptr< BaseStrike > & strike() const
boost::variant< QuantLib::Date, QuantLib::Period > maturity_
CpiCapFloor()
Default constructor.
const boost::variant< QuantLib::Date, QuantLib::Period > & maturity() const
QuantLib::CapFloor::Type type() const
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void checkNode(XMLNode *n, const string &expectedName)
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
boost::variant< QuantLib::Date, QuantLib::Period > parseDateOrPeriod(const string &s)
Convert text to QuantLib::Period or QuantLib::Date.
CapFloor::Type parseCapFloorType(const string &s)
class for holding details of a zero coupon CPI cap floor calibration instrument.
std::string to_string(const LocationInfo &l)
QuantLib::ext::shared_ptr< BaseStrike > parseBaseStrike(const string &strStrike)
Parse a Strike from its string representation, strStrike.
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.
string conversion utilities