Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ProxyVolatilityConfig Class Reference

#include <ored/configuration/volatilityconfig.hpp>

+ Inheritance diagram for ProxyVolatilityConfig:
+ Collaboration diagram for ProxyVolatilityConfig:

Public Member Functions

 ProxyVolatilityConfig ()
 
 ProxyVolatilityConfig (const std::string &proxyVolatilityCurve, const std::string &fxVolatilityCurve="", const std::string &correlationCurve="", std::string calendarStr=std::string(), QuantLib::Natural priority=0)
 
Inspectors
const std::string & proxyVolatilityCurve () const
 
const std::string & fxVolatilityCurve () const
 
const std::string & correlationCurve () const
 
- Public Member Functions inherited from VolatilityConfig
 VolatilityConfig (std::string calendarStr=std::string(), QuantLib::Natural priority=0)
 
void fromXMLNode (ore::data::XMLNode *node)
 
void toXMLNode (XMLDocument &doc, XMLNode *node) const
 
QuantLib::Natural priority () const
 
Calendar calendar () const
 
- Public Member Functions inherited from XMLSerializable
virtual ~XMLSerializable ()
 
virtual void fromXML (XMLNode *node)=0
 
virtual XMLNodetoXML (XMLDocument &doc) const =0
 
void fromFile (const std::string &filename)
 
void toFile (const std::string &filename) const
 
void fromXMLString (const std::string &xml)
 Parse from XML string. More...
 
std::string toXMLString () const
 Parse from XML string. More...
 

Serialisation

std::string proxyVolatilityCurve_
 
std::string fxVolatilityCurve_
 
std::string correlationCurve_
 
void fromXML (ore::data::XMLNode *node) override
 
ore::data::XMLNodetoXML (ore::data::XMLDocument &doc) const override
 

Detailed Description

Definition at line 54 of file volatilityconfig.hpp.

Constructor & Destructor Documentation

◆ ProxyVolatilityConfig() [1/2]

Definition at line 56 of file volatilityconfig.hpp.

56{}

◆ ProxyVolatilityConfig() [2/2]

ProxyVolatilityConfig ( const std::string &  proxyVolatilityCurve,
const std::string &  fxVolatilityCurve = "",
const std::string &  correlationCurve = "",
std::string  calendarStr = std::string(),
QuantLib::Natural  priority = 0 
)

Definition at line 57 of file volatilityconfig.hpp.

60 : VolatilityConfig(calendarStr, priority),
const std::string & correlationCurve() const
const std::string & fxVolatilityCurve() const
const std::string & proxyVolatilityCurve() const
QuantLib::Natural priority() const
VolatilityConfig(std::string calendarStr=std::string(), QuantLib::Natural priority=0)

Member Function Documentation

◆ proxyVolatilityCurve()

const std::string & proxyVolatilityCurve ( ) const

Definition at line 73 of file volatilityconfig.cpp.

73 {
75}
+ Here is the caller graph for this function:

◆ fxVolatilityCurve()

const std::string & fxVolatilityCurve ( ) const

Definition at line 77 of file volatilityconfig.cpp.

77 {
78 return fxVolatilityCurve_;
79}
+ Here is the caller graph for this function:

◆ correlationCurve()

const std::string & correlationCurve ( ) const

Definition at line 81 of file volatilityconfig.cpp.

81 {
82 return correlationCurve_;
83}
+ Here is the caller graph for this function:

◆ fromXML()

void fromXML ( ore::data::XMLNode node)
overridevirtual

Implements XMLSerializable.

Definition at line 54 of file volatilityconfig.cpp.

54 {
55 XMLUtils::checkNode(node, "ProxySurface");
57 proxyVolatilityCurve_ = XMLUtils::getChildValue(node, "ProxyVolatilityCurve", false);
58 fxVolatilityCurve_ = XMLUtils::getChildValue(node, "FXVolatilityCurve", false);
59 correlationCurve_ = XMLUtils::getChildValue(node, "CorrelationCurve", false);
60}
void fromXMLNode(ore::data::XMLNode *node)
static void checkNode(XMLNode *n, const string &expectedName)
Definition: xmlutils.cpp:175
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
Definition: xmlutils.cpp:277
+ Here is the call graph for this function:

◆ toXML()

XMLNode * toXML ( ore::data::XMLDocument doc) const
overridevirtual

Implements XMLSerializable.

Definition at line 62 of file volatilityconfig.cpp.

62 {
63 XMLNode* node = doc.allocNode("ProxySurface");
65 XMLUtils::addChild(doc, node, "ProxyVolatilityCurve", proxyVolatilityCurve_);
66 if (!fxVolatilityCurve_.empty())
67 XMLUtils::addChild(doc, node, "FXVolatilityCurve", fxVolatilityCurve_);
68 if (!correlationCurve_.empty())
69 XMLUtils::addChild(doc, node, "CorrelationCurve", correlationCurve_);
70 return node;
71}
void toXMLNode(XMLDocument &doc, XMLNode *node) const
XMLNode * allocNode(const string &nodeName)
util functions that wrap rapidxml
Definition: xmlutils.cpp:132
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
Definition: xmlutils.cpp:181
rapidxml::xml_node< char > XMLNode
Definition: xmlutils.hpp:60
+ Here is the call graph for this function:

Member Data Documentation

◆ proxyVolatilityCurve_

std::string proxyVolatilityCurve_
private

Definition at line 78 of file volatilityconfig.hpp.

◆ fxVolatilityCurve_

std::string fxVolatilityCurve_
private

Definition at line 79 of file volatilityconfig.hpp.

◆ correlationCurve_

std::string correlationCurve_
private

Definition at line 80 of file volatilityconfig.hpp.