43 const QuantLib::ext::shared_ptr<ScenarioFactory>& scenarioFactory);
49 QuantLib::Date
date()
const override;
51 QuantLib::ext::shared_ptr<Scenario>
scenario()
const override;
59 std::vector<RiskFactorKey>
keys_;
Class for reading historical scenarios from a csv file.
ore::data::CSVFileReader file_
Handle on the csv file.
~HistoricalScenarioFileReader() override
Destructor.
QuantLib::ext::shared_ptr< Scenario > scenario() const override
Return the current scenario if reader is still valid and nullptr otherwise.
bool finished_
Flag indicating if the reader has no more scenarios to read.
std::vector< RiskFactorKey > keys_
The risk factor keys of the scenarios in the file.
QuantLib::Date date() const override
Return the current scenario's date if reader is still valid and Null<Date>() otherwise.
QuantLib::ext::shared_ptr< ScenarioFactory > scenarioFactory_
Scenario factory.
bool next() override
Return true if there is another Scenario to read and move to it.
Base Class for reading historical scenarios.
historical scenario reader
factory classes for scenarios