31 const vector<CalibrationBasket>& calibrationBaskets,
32 const string& currency,
34 const bool ignoreDuplicateCalibrationExpiryTimes)
35 :
ModelData(calibrationType, calibrationBaskets),
38 ignoreDuplicateCalibrationExpiryTimes_(ignoreDuplicateCalibrationExpiryTimes) {}
void append(XMLDocument &doc, XMLNode *node) const override
Method used by toXML in derived classes to add the members here to a node.
const std::string & index() const
const std::string & currency() const
bool ignoreDuplicateCalibrationExpiryTimes() const
void fromXML(XMLNode *node) override
bool ignoreDuplicateCalibrationExpiryTimes_
InflationModelData()
Default constructor. The currency and inflation index are empty.
virtual void append(XMLDocument &doc, XMLNode *node) const
Method used by toXML in derived classes to add the members here to a node.
void fromXML(XMLNode *node) override
Small XML Document wrapper class.
static void addAttribute(XMLDocument &doc, XMLNode *node, const string &attrName, const string &attrValue)
static string getAttribute(XMLNode *node, const string &attrName)
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)
base class for holding inflation model data
CalibrationType
Supported calibration types.
Serializable Credit Default Swap.