25#include <boost/make_shared.hpp>
33 std::string ccyCode = cpiIndex->currency().code();
35 Handle<QuantLib::CPIVolatilitySurface> ovs =
39 bool useLastFixingDate =
45 return QuantLib::ext::make_shared<QuantExt::CPIBlackCapFloorEngine>(discountCurve, ovs, useLastFixingDate);
47 return QuantLib::ext::make_shared<QuantExt::CPIBachelierCapFloorEngine>(discountCurve, ovs, useLastFixingDate);
virtual QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const string &indexName) override
QuantLib::ext::shared_ptr< Market > market_
std::string engineParameter(const std::string &p, const std::vector< std::string > &qualifiers={}, const bool mandatory=true, const std::string &defaultValue="") const
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
bool parseBool(const string &s)
Convert text to bool.
Classes and functions for log message handling.
bool isCPIVolSurfaceLogNormal(const boost::shared_ptr< QuantLib::CPIVolatilitySurface > &surface)
Serializable Credit Default Swap.
builder that returns an engine to price a CPI cap or floor