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

#include <ored/portfolio/tradebarrier.hpp>

+ Inheritance diagram for TradeBarrier:
+ Collaboration diagram for TradeBarrier:

Public Member Functions

 TradeBarrier ()
 
 TradeBarrier (QuantLib::Real value, std::string currency)
 
void fromXML (XMLNode *node)
 
XMLNodetoXML (XMLDocument &doc)
 
- Public Member Functions inherited from TradeMonetary
 TradeMonetary ()
 
 TradeMonetary (const QuantLib::Real &value, std::string currency=std::string())
 
 TradeMonetary (const std::string &valueString)
 
void fromXMLNode (XMLNode *node)
 
void toXMLNode (XMLDocument &doc, XMLNode *node)
 
bool empty () const
 
QuantLib::Real value () const
 
const string & valueString () const
 
std::string currency () const
 
void setCurrency (const std::string &currency)
 
void setValue (const QuantLib::Real &value)
 

Additional Inherited Members

- Protected Attributes inherited from TradeMonetary
QuantLib::Real value_ = QuantLib::Null<QuantLib::Real>()
 
std::string valueString_
 store a string version of the value, this ensures toXML values matches fromXML input More...
 
std::string currency_
 

Detailed Description

Definition at line 30 of file tradebarrier.hpp.

Constructor & Destructor Documentation

◆ TradeBarrier() [1/2]

Definition at line 33 of file tradebarrier.hpp.

33{};

◆ TradeBarrier() [2/2]

TradeBarrier ( QuantLib::Real  value,
std::string  currency 
)

Definition at line 35 of file tradebarrier.hpp.

Member Function Documentation

◆ fromXML()

void fromXML ( XMLNode node)

Definition at line 25 of file tradebarrier.cpp.

void fromXMLNode(XMLNode *node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toXML()

XMLNode * toXML ( XMLDocument doc)

Definition at line 27 of file tradebarrier.cpp.

27 {
28 XMLNode* node = doc.allocNode("LevelData");
29 TradeMonetary::toXMLNode(doc, node);
30 return node;
31}
void toXMLNode(XMLDocument &doc, XMLNode *node)
rapidxml::xml_node< char > XMLNode
Definition: xmlutils.hpp:60
+ Here is the call graph for this function: