Foreign exchange rate data class. More...
#include <ored/marketdata/marketdatum.hpp>
Public Member Functions | |
FXSpotQuote () | |
FXSpotQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, string unitCcy, string ccy) | |
Constructor. More... | |
QuantLib::ext::shared_ptr< MarketDatum > | clone () override |
Make a copy of the market datum. More... | |
Public Member Functions inherited from MarketDatum | |
MarketDatum () | |
MarketDatum (Real value, Date asofDate, const string &name, QuoteType quoteType, InstrumentType instrumentType) | |
Constructor. More... | |
virtual | ~MarketDatum () |
Default destructor. More... | |
virtual QuantLib::ext::shared_ptr< MarketDatum > | clone () |
Make a copy of the market datum. More... | |
const string & | name () const |
const Handle< Quote > & | quote () const |
Date | asofDate () const |
InstrumentType | instrumentType () const |
QuoteType | quoteType () const |
Inspectors | |
string | unitCcy_ |
string | ccy_ |
class | boost::serialization::access |
Serialization. More... | |
const string & | unitCcy () const |
const string & | ccy () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Foreign exchange rate data class.
This class holds single market points of type
The quote is then interpreted as follows:
1 unit of "unit currency" = quote * 1 unit of "currency"
Definition at line 1104 of file marketdatum.hpp.
FXSpotQuote | ( | ) |
Definition at line 1106 of file marketdatum.hpp.
FXSpotQuote | ( | Real | value, |
Date | asofDate, | ||
const string & | name, | ||
QuoteType | quoteType, | ||
string | unitCcy, | ||
string | ccy | ||
) |
Constructor.
Definition at line 1108 of file marketdatum.hpp.
|
overridevirtual |
Make a copy of the market datum.
Reimplemented from MarketDatum.
Definition at line 1112 of file marketdatum.hpp.
const string & unitCcy | ( | ) | const |
Definition at line 1118 of file marketdatum.hpp.
const string & ccy | ( | ) | const |
Definition at line 1119 of file marketdatum.hpp.
|
private |
Definition at line 502 of file marketdatum.cpp.
|
friend |
Serialization.
Definition at line 1125 of file marketdatum.hpp.
|
private |
Definition at line 1122 of file marketdatum.hpp.
|
private |
Definition at line 1123 of file marketdatum.hpp.