31 const vector<CalibrationBasket>& calibrationBaskets)
32 : calibrationType_(calibrationType), calibrationBaskets_(calibrationBaskets) {}
void fromXML(XMLNode *node) override
CalibrationType calibrationType_
CalibrationType calibrationType() const
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
std::vector< CalibrationBasket > calibrationBaskets_
ModelData()
Default constructor.
const std::vector< CalibrationBasket > & calibrationBaskets() const
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void addGenericChild(XMLDocument &doc, XMLNode *n, const char *name, const T &value)
Adds <Name>p1,p2,p3</Name>
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 * getNextSibling(XMLNode *node, const string &name="")
Get a node's next sibling node.
static void appendNode(XMLNode *parent, XMLNode *child)
base class for holding model data
CalibrationType
Supported calibration types.
CalibrationType parseCalibrationType(const string &s)
Convert calibration type string into enumerated class value.
Serializable Credit Default Swap.