110 bool reportOnDeltaGrid =
false;
111 bool reportOnMoneynessGrid =
false;
112 bool reportOnStrikeGrid =
false;
113 bool reportOnStrikeSpreadGrid =
false;
114 std::vector<Real> moneyness;
115 std::vector<std::string> deltas;
117 std::vector<Real> strikeSpreads;
118 std::vector<Period> expiries;
119 std::vector<Period> underlyingTenors;
147 deltas = *localConfig.
deltas();
148 else if (globalConfig.
deltas())
149 deltas = *globalConfig.
deltas();
153 else if (globalConfig.
strikes())
164 expiries = *globalConfig.
expiries();
171 return ReportConfig(reportOnDeltaGrid, reportOnMoneynessGrid, reportOnStrikeGrid, reportOnStrikeSpreadGrid, deltas,
172 moneyness,
strikes, strikeSpreads, expiries, underlyingTenors);
boost::optional< std::vector< Real > > moneyness_
boost::optional< std::vector< Period > > expiries_
boost::optional< std::vector< std::string > > deltas_
const boost::optional< bool > reportOnDeltaGrid() const
const boost::optional< std::vector< Period > > & underlyingTenors() const
const boost::optional< std::vector< Real > > & strikes() const
boost::optional< bool > reportOnStrikeSpreadGrid_
boost::optional< bool > reportOnMoneynessGrid_
const boost::optional< std::vector< std::string > > & deltas() const
const boost::optional< bool > reportOnStrikeSpreadGrid() const
const boost::optional< bool > reportOnMoneynessGrid() const
const boost::optional< bool > reportOnStrikeGrid() const
void fromXML(XMLNode *node) override
XMLNode * toXML(XMLDocument &doc) const override
const boost::optional< std::vector< Period > > & expiries() const
boost::optional< bool > reportOnStrikeGrid_
boost::optional< std::vector< Real > > strikes_
boost::optional< bool > reportOnDeltaGrid_
boost::optional< std::vector< Period > > underlyingTenors_
boost::optional< std::vector< Real > > strikeSpreads_
const boost::optional< std::vector< Real > > & moneyness() const
const boost::optional< std::vector< Real > > & strikeSpreads() const
Small XML Document wrapper class.
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
static void addGenericChildAsList(XMLDocument &doc, XMLNode *n, const string &name, const vector< T > &values, const string &attrName="", const string &attr="")
static void checkNode(XMLNode *n, const string &expectedName)
static XMLNode * getChildNode(XMLNode *n, const string &name="")
static string getNodeValue(XMLNode *node)
Get a node's value.
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
Period parsePeriod(const string &s)
Convert text to QuantLib::Period.
bool parseBool(const string &s)
Convert text to bool.
Real parseReal(const string &s)
Convert text to Real.
std::vector< string > parseListOfValues(string s, const char escape, const char delim, const char quote)
ReportConfig effectiveReportConfig(const ReportConfig &globalConfig, const ReportConfig &localConfig)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.
md report and arbitrage check configuration