32 for (
auto& n : lvls) {
40 for (Size i = 0; i <
levels_.size(); i++)
std::string rebatePayTime_
virtual void fromXML(ore::data::XMLNode *node) override
std::string rebateCurrency_
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
std::vector< double > levels_
std::vector< ore::data::TradeBarrier > tradeBarriers_
void fromXML(XMLNode *node)
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static vector< Real > getChildrenValuesAsDoubles(XMLNode *node, const string &names, const string &name, bool mandatory=false)
static void addChildren(XMLDocument &doc, XMLNode *n, const string &names, const string &name, const vector< T > &values)
static void checkNode(XMLNode *n, const string &expectedName)
static vector< XMLNode * > getChildrenNodes(XMLNode *node, const string &name)
Returns all the children with a given name.
static Real getChildValueAsDouble(XMLNode *node, const string &name, bool mandatory=false, double defaultValue=0.0)
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)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.