Commodity spot quote class. More...
#include <ored/marketdata/marketdatum.hpp>
Inheritance diagram for CommoditySpotQuote:
Collaboration diagram for CommoditySpotQuote:Public Member Functions | |
| CommoditySpotQuote () | |
| CommoditySpotQuote (QuantLib::Real value, const QuantLib::Date &asofDate, const std::string &name, QuoteType quoteType, const std::string &commodityName, const std::string "eCurrency) | |
| 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 | |
| std::string | commodityName_ |
| std::string | quoteCurrency_ |
| class | boost::serialization::access |
| Serialization. More... | |
| const std::string & | commodityName () const |
| const std::string & | quoteCurrency () const |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Commodity spot quote class.
This class holds a spot price for a commodity in a given currency
Definition at line 1696 of file marketdatum.hpp.
Definition at line 1698 of file marketdatum.hpp.
| CommoditySpotQuote | ( | QuantLib::Real | value, |
| const QuantLib::Date & | asofDate, | ||
| const std::string & | name, | ||
| QuoteType | quoteType, | ||
| const std::string & | commodityName, | ||
| const std::string & | quoteCurrency | ||
| ) |
Constructor.
Definition at line 1700 of file marketdatum.hpp.
Here is the call graph for this function:
|
overridevirtual |
Make a copy of the market datum.
Reimplemented from MarketDatum.
Definition at line 1708 of file marketdatum.hpp.
| const std::string & commodityName | ( | ) | const |
Definition at line 1714 of file marketdatum.hpp.
| const std::string & quoteCurrency | ( | ) | const |
Definition at line 1715 of file marketdatum.hpp.
|
private |
Definition at line 608 of file marketdatum.cpp.
|
friend |
Serialization.
Definition at line 1722 of file marketdatum.hpp.
|
private |
Definition at line 1719 of file marketdatum.hpp.
|
private |
Definition at line 1720 of file marketdatum.hpp.