8#ifndef FMTtransitionparser_H_INCLUDED
9#define FMTtransitionparser_H_INCLUDED
12#include <boost/regex.hpp>
24 class FMTtransitionmask;
25 class FMTGCBMtransition;
39 const static boost::regex rxsection;
42 const static boost::regex rxlock;
45 const static boost::regex rxage;
48 const static boost::regex rxreplace;
51 const static boost::regex rxtyld;
84 std::vector<Core::FMTtransitionmask>
getmasktran(
const std::string& line,
const std::vector<Core::FMTtheme>& themes,
91 std::vector<Core::FMTtransition>
read(
const std::vector<Core::FMTtheme>& themes,
92 const std::vector<Core::FMTaction>& actions,
94 const std::string& location);
99 void write(
const std::vector<Core::FMTtransition>& transitions,
const std::string& location)
const;
104 void writeGCBM(
const std::vector<Core::FMTGCBMtransition>& transitions,
const std::string& location)
const;
109 std::vector<Core::FMTGCBMtransition>
readGCBM(
const std::string& location)
const;
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTconstants.hpp:29
Definition: FMTmask.hpp:96
Definition: FMTbounds.hpp:342
Definition: FMTyields.hpp:40
Definition: FMTparser.hpp:66
Definition: FMTtransitionparser.hpp:36
FMTtransitionparser(const FMTtransitionparser &rhs)=default
std::vector< Core::FMTtransitionmask > getmasktran(const std::string &line, const std::vector< Core::FMTtheme > &themes, const Core::FMTconstants &constants, const Core::FMTyields &ylds, const Core::FMTmask &sourcemask, int &replaced)
void writeGCBM(const std::vector< Core::FMTGCBMtransition > &transitions, const std::string &location) const
void write(const std::vector< Core::FMTtransition > &transitions, const std::string &location) const
std::vector< Core::FMTGCBMtransition > readGCBM(const std::string &location) const
Core::FMTmask getsource(std::string &line, Core::FMTspec &spec, const std::vector< Core::FMTtheme > &themes, Core::FMTsection section, const Core::FMTconstants &constant, const Core::FMTyields &ylds)
std::vector< Core::FMTtransition > read(const std::vector< Core::FMTtheme > &themes, const std::vector< Core::FMTaction > &actions, const Core::FMTyields &ylds, const Core::FMTconstants &constants, const std::string &location)
~FMTtransitionparser()=default
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
FMTsection
Definition: FMTutility.hpp:23
Namespace handling all FMT's parsers. Everything related to I/O should be located in this namespace.
Definition: FMTactionparser.hpp:26