27 return currency +
"_" + creditCurveId;
31 const std::string& creditCurveId) {
37 bool generateAdditionalResults =
false;
40 generateAdditionalResults =
parseBool(p->second);
43 return QuantLib::ext::make_shared<QuantExt::DiscountingCreditLinkedSwapEngine>(
45 generateAdditionalResults);
QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const std::string ¤cy, const std::string &creditCurveId) override
std::string keyImpl(const std::string ¤cy, const std::string &creditCurveId) 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)
std::map< std::string, std::string > globalParameters_
bool parseBool(const string &s)
Convert text to bool.
Integer parseInteger(const string &s)
Convert text to QuantLib::Integer.
Serializable Credit Default Swap.