#include <ored/portfolio/tradebarrier.hpp>
Public Member Functions | |
TradeBarrier () | |
TradeBarrier (QuantLib::Real value, std::string currency) | |
void | fromXML (XMLNode *node) |
XMLNode * | toXML (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 ¤cy) |
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_ |
Definition at line 30 of file tradebarrier.hpp.
TradeBarrier | ( | ) |
Definition at line 33 of file tradebarrier.hpp.
TradeBarrier | ( | QuantLib::Real | value, |
std::string | currency | ||
) |
Definition at line 35 of file tradebarrier.hpp.
void fromXML | ( | XMLNode * | node | ) |
Definition at line 25 of file tradebarrier.cpp.
XMLNode * toXML | ( | XMLDocument & | doc | ) |
Definition at line 27 of file tradebarrier.cpp.