47 const string& marketFilename,
49 const string& fixingFilename,
51 bool implyTodaysFixings =
false,
53 Date fixingCutOffDate = Date());
56 const vector<string>& marketFiles,
58 const vector<string>& fixingFiles,
60 bool implyTodaysFixings =
false,
62 Date fixingCutOffDate = Date());
65 const string& marketFilename,
67 const string& fixingFilename,
69 const string& dividendFilename,
71 bool implyTodaysFixings =
false,
73 Date fixingCutOffDate = Date());
76 const vector<string>& marketFiles,
78 const vector<string>& fixingFiles,
80 const vector<string>& dividendFiles,
82 bool implyTodaysFixings =
false,
84 Date fixingCutOffDate = Date());
86 std::vector<QuantLib::ext::shared_ptr<MarketDatum>>
loadQuotes(
const QuantLib::Date&)
const override;
88 QuantLib::ext::shared_ptr<MarketDatum>
get(
const string&
name,
const QuantLib::Date& d)
const override;
89 std::set<QuantLib::ext::shared_ptr<MarketDatum>>
get(
const std::set<std::string>& names,
90 const QuantLib::Date& asof)
const override;
92 std::set<QuantLib::ext::shared_ptr<MarketDatum>>
get(
const Wildcard& wildcard,
const QuantLib::Date& asof)
const override;
Utility class for loading market quotes and fixings from a file.
std::set< QuantExt::Dividend > loadDividends() const override
Load dividends.
std::set< QuantExt::Dividend > dividends_
std::set< Fixing > fixings_
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::set< Fixing > loadFixings() const override
Load fixings.
std::vector< QuantLib::ext::shared_ptr< MarketDatum > > loadQuotes(const QuantLib::Date &) const override
get all quotes, TODO change the return value to std::set
std::map< QuantLib::Date, std::set< QuantLib::ext::shared_ptr< MarketDatum >, SharedPtrMarketDatumComparator > > data_
void loadFile(const string &, DataType)
Market data loader base class.
Market Datum Loader Interface.
Serializable Credit Default Swap.