8#ifndef FMTscheduleparser_Hm_included
9#define FMTscheduleparser_Hm_included
54 std::string
getSchedulePath(
const std::string& p_primary_path,
const std::string& p_output_scenario_name);
72 std::vector<Core::FMTSchedule>
read(
const std::vector<Core::FMTTheme>& themes,
74 const std::vector<Core::FMTAction>& actions,
75 const std::string& location,
84 void write(
const std::vector<Core::FMTSchedule>& schedules,
const std::string& location,
bool append =
false)
const;
92 int getVariable()
const;
99 static void _writeSchedule(std::ofstream& p_stream,
const std::vector<Core::FMTSchedule>& p_schedules);
106 static std::vector<Core::FMTSchedule>::const_iterator _getFirstEmptySchedule(
const std::vector<Core::FMTSchedule>& p_schedules);
#define FMT_DBL_TOLERANCE
Definition: FMTutility.h:11
#define FMTEXPORT
Definition: FMTutility.h:125
Class holding the constants defined in the constants section of a model, used by the parsers.
Definition: FMTConstants.h:28
Main parent class of all the parsers in FMT.
Definition: FMTParser.h:73
Parser reading and writing vectors of schedules, also used by the model parser.
Definition: FMTScheduleParser.h:29
void write(const std::vector< Core::FMTSchedule > &schedules, const std::string &location, bool append=false) const
Write a vector of schedules to a schedule file.
~FMTScheduleParser()=default
Default destructor for FMTScheduleParser.
FMTScheduleParser()
Default constructor for FMTScheduleParser.
FMTScheduleParser(const FMTScheduleParser &rhs)
Copy constructor for FMTScheduleParser.
std::vector< Core::FMTSchedule > read(const std::vector< Core::FMTTheme > &themes, const Core::FMTConstants &p_constants, const std::vector< Core::FMTAction > &actions, const std::string &location, double tolerance=FMT_DBL_TOLERANCE)
Read a schedule section and turn it into a vector of schedules.
std::string getSchedulePath(const std::string &p_primary_path, const std::string &p_output_scenario_name)
Return the path to the schedule file from a primary path and a scenario name.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34
Namespace handling all FMT's parsers. Everything related to I/O should be located in this namespace.
Definition: FMTActionParser.h:27