49 const bool settlesAccrual,
50 const PPT protectionPaymentTime,
51 const Date& protectionStart,
52 const Date& upfrontDate,
53 const Real upfrontFee,
54 const Date& tradeDate,
55 const string& cashSettlementDays,
56 const bool rebatesAccrual)
57 :
CreditDefaultSwapData(
"", creditCurveId, leg, settlesAccrual, protectionPaymentTime, protectionStart,
58 upfrontDate, upfrontFee, Null<Real>(),
"", tradeDate, cashSettlementDays, rebatesAccrual),
87 return doc.
allocNode(
"IndexCreditDefaultSwapData");
92 if (p.second != 0 * Days)
95 if (s.dates().empty())
void fromXML(ore::data::XMLNode *node) override
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
const LegData & leg() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const string & creditCurveId() const
ore::data::XMLNode * alloc(ore::data::XMLDocument &doc) const override
void fromXML(ore::data::XMLNode *node) override
QuantLib::Date indexStartDateHint_
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
void check(ore::data::XMLNode *node) const override
IndexCreditDefaultSwapData()
Default constructor.
std::string creditCurveIdWithTerm() const
Serializable object holding leg data.
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 * getChildNode(XMLNode *n, const string &name="")
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
static void appendNode(XMLNode *parent, XMLNode *child)
Date parseDate(const string &s)
Convert std::string to QuantLib::Date.
bool parseBool(const string &s)
Convert text to bool.
Real parseReal(const string &s)
Convert text to Real.
leg data model and serialization
Classes and functions for log message handling.
market data related utilties
QuantLib::Period implyIndexTerm(const Date &startDate, const Date &endDate)
std::string to_string(const LocationInfo &l)
std::pair< std::string, QuantLib::Period > splitCurveIdWithTenor(const std::string &creditCurveId)
Schedule makeSchedule(const ScheduleDates &data)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.
string conversion utilities