48 LOG(
"CC-LGM calibration type = " << calibTypeString);
56 LOG(
"CC-LGM Sigma parameter type = " << sigmaTypeString);
70 "size mismatch in FX option expiries/strike for foreign ccy " <<
foreignCcy_);
95 return crossCcyLGMNode;
void fromXML(XMLNode *node)
bool operator!=(const FxBsData &rhs)
CalibrationType calibrationType_
std::vector< std::string > optionExpiries_
XMLNode * toXML(XMLDocument &doc)
std::vector< Time > sigmaTimes_
std::vector< Real > sigmaValues_
bool operator==(const FxBsData &rhs)
std::vector< std::string > optionStrikes_
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void addAttribute(XMLDocument &doc, XMLNode *node, const string &attrName, const string &attrValue)
static string getAttribute(XMLNode *node, const string &attrName)
static void addGenericChildAsList(XMLDocument &doc, XMLNode *n, const string &name, const vector< T > &values, const string &attrName="", const string &attr="")
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 bool getChildValueAsBool(XMLNode *node, const string &name, bool mandatory=false, bool defaultValue=true)
static XMLNode * getChildNode(XMLNode *n, const string &name="")
static vector< string > getChildrenValuesAsStrings(XMLNode *node, const string &name, bool mandatory=false)
static vector< Real > getChildrenValuesAsDoublesCompact(XMLNode *node, const string &name, bool mandatory=false)
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
FX component data for the cross asset model.
Classes and functions for log message handling.
#define LOG(text)
Logging Macro (Level = Notice)
CalibrationType parseCalibrationType(const string &s)
Convert calibration type string into enumerated class value.
ParamType parseParamType(const string &s)
Convert parameter type string into enumerated class value.
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.