32 std::vector<QuantLib::ext::shared_ptr<MarketDatum>>
loadQuotes(
const QuantLib::Date& d)
const override;
33 QuantLib::ext::shared_ptr<MarketDatum>
get(
const string&
name,
const QuantLib::Date& d)
const override;
34 std::set<QuantLib::ext::shared_ptr<MarketDatum>>
get(
const std::set<std::string>& names,
35 const QuantLib::Date& asof)
const override;
36 std::set<QuantLib::ext::shared_ptr<MarketDatum>>
get(
const Wildcard& wildcard,
const QuantLib::Date& asof)
const override;
39 bool hasQuotes(
const QuantLib::Date& d)
const override;
42 virtual void add(QuantLib::Date date,
const string&
name, QuantLib::Real
value);
65 const std::vector<std::string>& marketData,
67 const std::vector<std::string>& fixingData,
69 bool implyTodaysFixings =
false);
bool hasQuotes(const QuantLib::Date &d) const override
check if there are quotes for a date
std::set< QuantExt::Dividend > loadDividends() const override
Optional load dividends method.
std::set< QuantExt::Dividend > dividends_
std::set< Fixing > fixings_
virtual void addFixing(QuantLib::Date date, const string &name, QuantLib::Real value)
QuantLib::ext::shared_ptr< MarketDatum > get(const string &name, const QuantLib::Date &d) const override
get quote by its unique name, throws if not existent, override in derived classes for performance
std::vector< QuantLib::ext::shared_ptr< MarketDatum > > loadQuotes(const QuantLib::Date &d) const override
get all quotes, TODO change the return value to std::set
std::set< Fixing > loadFixings() const override
virtual void add(QuantLib::Date date, const string &name, QuantLib::Real value)
virtual void addDividend(const QuantExt::Dividend ÷nd)
std::map< QuantLib::Date, std::set< QuantLib::ext::shared_ptr< MarketDatum >, SharedPtrMarketDatumComparator > > data_
Market data loader base class.
SafeStack< ValueType > value
Market Datum Loader Interface.
void loadDataFromBuffers(InMemoryLoader &loader, const std::vector< std::string > &marketData, const std::vector< std::string > &fixingData, bool implyTodaysFixings)
Utility function for loading market quotes and fixings from an in memory csv buffer.
Serializable Credit Default Swap.