28#include <ql/currency.hpp>
29#include <ql/types.hpp>
34using QuantLib::Currency;
48 QL_REQUIRE(
curveID.size() == 6,
"FXSpot curveID must be of the form Ccy1Ccy2");
51 quotes_.push_back(
"FX/RATE/" + ccy1.code() +
"/" + ccy2.code());
60 QL_REQUIRE(
curveID_.size() == 6,
"FXSpot curveID must be of the form Ccy1Ccy2");
63 quotes_.push_back(
"FX/RATE/" + ccy1.code() +
"/" + ccy2.code());
Base curve configuration.
const string & curveDescription() const
const string & curveID() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
FXSpotConfig(const string &curveID, const string &curveDescription)
Detailed constructor.
FXSpotConfig()
Default constructor.
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 * addChild(XMLDocument &doc, XMLNode *n, const string &name)
Base curve configuration classes.
Currency parseCurrency(const string &s)
Convert text to QuantLib::Currency.
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.