33 CSVScenarioGenerator(
const std::string& filename,
const QuantLib::ext::shared_ptr<ScenarioFactory> scenarioFactory,
34 const char sep =
',');
38 virtual QuantLib::ext::shared_ptr<Scenario>
next(
const Date& d)
override;
40 virtual void reset()
override;
Class for generating scenarios from a csv file assumed to be in a format compatible with ScenarioWrit...
const QuantLib::ext::shared_ptr< ScenarioFactory > scenarioFactory_
const std::string & filename_
virtual QuantLib::ext::shared_ptr< Scenario > next(const Date &d) override
Return the next scenario for the given date.
virtual ~CSVScenarioGenerator()
vector< RiskFactorKey > keys_
virtual void reset() override
Reset the generator so calls to next() return the first scenario.
Scenario generator base class.
factory classes for scenarios
Scenario generator base classes.