8#ifndef FMTactionparser_Hm_included
9#define FMTactionparser_Hm_included
12#include <boost/regex.hpp>
67 std::vector<Core::FMTAction>
read(
const std::vector<Core::FMTTheme>& themes,
69 const std::string& location);
77 void write(
const std::vector<Core::FMTAction>& actions,
78 const std::string& location,
bool withgcbmagg =
false)
const;
89 const static boost::regex m_rxsection;
92 const static boost::regex m_rxoperator;
95 const static boost::regex m_SERIES_MATCH;
104 const std::vector<Core::FMTAction>& p_actions)
const;
112 std::vector<Core::FMTAction*> _sameActionAs(
const std::string& all_set, std::vector<Core::FMTAction>& actions)
const;
130 std::map<std::string, std::vector<std::string>>_valAgg(std::vector<Core::FMTAction>& actions, std::map<std::string, std::vector<std::string>>& aggregates);
#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
Class keeping the information of a serie of actions in a given order.
Definition: FMTSerie.h:23
FMTList containing multiple yield handlers as seen in the yield section, holding the information rela...
Definition: FMTYields.h:44
Parser reading and writing actions from or into action files, also used by the model parser.
Definition: FMTActionParser.h:33
~FMTActionParser()=default
Default destructor for FMTActionParser.
std::vector< Core::FMTAction > read(const std::vector< Core::FMTTheme > &themes, const Core::FMTYields &yields, const Core::FMTConstants &constants, const std::string &location)
Read actions from an action file.
void write(const std::vector< Core::FMTAction > &actions, const std::string &location, bool withgcbmagg=false) const
Write actions to an action file.
FMTActionParser()
Default constructor for FMTActionParser.
FMTActionParser(const FMTActionParser &rhs)=default
Copy constructor for FMTActionParser.
std::vector< Core::FMTAction > getGCBMactionsaggregate(const std::vector< Core::FMTAction > &actions) const
Return the GCBM action aggregates corresponding to the actions.
Main parent class of all the parsers in FMT.
Definition: FMTParser.h:72
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