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);
71 std::vector<Core::FMTSchedule>
read(
const std::vector<Core::FMTTheme>& themes,
72 const std::vector<Core::FMTAction>& actions,
const std::string& location,
double tolerance =
FMT_DBL_TOLERANCE);
80 void write(
const std::vector<Core::FMTSchedule>& schedules,
const std::string& location,
bool append =
false)
const;
88 int getVariable()
const;
95 static void _writeSchedule(std::ofstream& p_stream,
const std::vector<Core::FMTSchedule>& p_schedules);
102 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
Main parent class of all the parsers in FMT.
Definition: FMTParser.h:72
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.
std::vector< Core::FMTSchedule > read(const std::vector< Core::FMTTheme > &themes, 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.
~FMTScheduleParser()=default
Default destructor for FMTScheduleParser.
FMTScheduleParser()
Default constructor for FMTScheduleParser.
FMTScheduleParser(const FMTScheduleParser &rhs)
Copy constructor for FMTScheduleParser.
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