#include <ored/configuration/volatilityconfig.hpp>
Definition at line 104 of file volatilityconfig.hpp.
◆ QuoteBasedVolatilityConfig()
Default constructor.
Definition at line 107 of file volatilityconfig.hpp.
const MarketDatum::QuoteType & quoteType() const
MarketDatum::QuoteType quoteType_
QuantLib::Exercise::Type exerciseType_
const QuantLib::Exercise::Type & exerciseType() const
QuantLib::Natural priority() const
VolatilityConfig(std::string calendarStr=std::string(), QuantLib::Natural priority=0)
◆ quoteType()
◆ exerciseType()
const QuantLib::Exercise::Type & exerciseType |
( |
| ) |
const |
◆ fromBaseNode()
Definition at line 100 of file volatilityconfig.cpp.
100 {
103 if (qType == "ImpliedVolatility" || qType == "") {
105 if (volType == "Lognormal" || qType == "") {
107 } else if (volType == "ShiftedLognormal") {
109 } else if (volType == "Normal") {
111 } else {
112 QL_FAIL("Volatility type " << volType << " is not supported;");
113 }
114 } else if (qType == "Premium") {
116
118 } else {
119 QL_FAIL("Invalid quote type for volatility curve , quote type must be ImpliedVolatility or Premium");
120 }
121}
void fromXMLNode(ore::data::XMLNode *node)
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
Exercise::Type parseExerciseType(const std::string &s)
Convert text to QuantLib::Exercise::Type.
◆ toBaseNode()
Definition at line 123 of file volatilityconfig.cpp.
123 {
125
126
130 return;
131 }
132
133
141 } else {
142 QL_FAIL("Invalid quote type");
143 }
144}
void toXMLNode(XMLDocument &doc, XMLNode *node) const
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
std::string to_string(const LocationInfo &l)
◆ quoteType_
◆ exerciseType_
QuantLib::Exercise::Type exerciseType_ |
|
private |