#include <ored/portfolio/trademonetary.hpp>
|
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 31 of file trademonetary.hpp.
◆ TradeMonetary() [1/3]
◆ TradeMonetary() [2/3]
TradeMonetary |
( |
const QuantLib::Real & |
value, |
|
|
std::string |
currency = std::string() |
|
) |
| |
Definition at line 36 of file trademonetary.hpp.
39 };
std::string valueString_
store a string version of the value, this ensures toXML values matches fromXML input
std::string currency() const
QuantLib::Real value() const
std::string to_string(const LocationInfo &l)
◆ TradeMonetary() [3/3]
Definition at line 40 of file trademonetary.hpp.
42 };
const string & valueString() const
Real parseReal(const string &s)
Convert text to Real.
◆ fromXMLNode()
Definition at line 26 of file trademonetary.cpp.
26 {
30}
static string getChildValue(XMLNode *node, const string &name, bool mandatory=false, const string &defaultValue=string())
◆ toXMLNode()
Definition at line 32 of file trademonetary.cpp.
32 {
35}
static XMLNode * addChild(XMLDocument &doc, XMLNode *n, const string &name)
◆ empty()
◆ value()
QuantLib::Real value |
( |
| ) |
const |
Definition at line 44 of file trademonetary.cpp.
44 {
47 else
49}
QuantLib::Real convertMinorToMajorCurrency(const std::string &s, QuantLib::Real value)
Convert a value from a minor ccy to major.
◆ valueString()
const string & valueString |
( |
| ) |
const |
◆ currency()
std::string currency |
( |
| ) |
const |
Definition at line 37 of file trademonetary.cpp.
37 {
40 else
42}
Currency parseCurrencyWithMinors(const string &s)
Convert text to QuantLib::Currency.
◆ setCurrency()
void setCurrency |
( |
const std::string & |
currency | ) |
|
◆ setValue()
void setValue |
( |
const QuantLib::Real & |
value | ) |
|
◆ value_
QuantLib::Real value_ = QuantLib::Null<QuantLib::Real>() |
|
protected |
◆ valueString_
store a string version of the value, this ensures toXML values matches fromXML input
Definition at line 57 of file trademonetary.hpp.
◆ currency_