FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTtransitionparser.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2019 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTtransitionparser_H_INCLUDED
9#define FMTtransitionparser_H_INCLUDED
10
11#include "FMTparser.hpp"
12#include <boost/regex.hpp>
13#include "string"
14#include <vector>
15
16
17namespace Core {
18 class FMTmask;
19 class FMTyields;
20 class FMTtransition;
21 class FMTaction;
22 class FMTtheme;
23 class FMTconstants;
24 class FMTtransitionmask;
25 class FMTGCBMtransition;
26}
27
28namespace Parser
29{
30// DocString: FMTtransitionparser
36 {
37 // DocString: FMTtransitionparser::rxsection
39 const static boost::regex rxsection;
40 // DocString: FMTtransitionparser::rxlock
42 const static boost::regex rxlock;
43 // DocString: FMTtransitionparser::rxage
45 const static boost::regex rxage;
46 // DocString: FMTtransitionparser::rxreplace
48 const static boost::regex rxreplace;
49 // DocString: FMTtransitionparser::rxtyld
51 const static boost::regex rxtyld;
52 public:
53 // DocString: FMTtransitionparser()
58 // DocString: ~FMTtransitionparser()
63 // DocString: FMTtransitionparser(const FMTtransitionparser&)
68 // DocString: FMTtransitionparser::FMTtransitionparser=
72 FMTtransitionparser& operator = (const FMTtransitionparser& rhs)=default;
73 // DocString: FMTtransitionparser::getsource
77 Core::FMTmask getsource(std::string& line, Core::FMTspec& spec,const std::vector<Core::FMTtheme>& themes,
78 Core::FMTsection section,const Core::FMTconstants& constant,
79 const Core::FMTyields& ylds);
80 // DocString: FMTtransitionparser::getmasktran
84 std::vector<Core::FMTtransitionmask> getmasktran(const std::string& line,const std::vector<Core::FMTtheme>& themes,
85 const Core::FMTconstants& constants, const Core::FMTyields& ylds,
86 const Core::FMTmask& sourcemask, int& replaced);
87 // DocString: FMTtransitionparser::read
91 std::vector<Core::FMTtransition>read(const std::vector<Core::FMTtheme>& themes,
92 const std::vector<Core::FMTaction>& actions,
93 const Core::FMTyields& ylds,const Core::FMTconstants& constants,
94 const std::string& location);
95 // DocString: FMTtransitionparser::write
99 void write(const std::vector<Core::FMTtransition>& transitions,const std::string& location) const;
100 // DocString: FMTtransitionparser::writeGCBM
104 void writeGCBM(const std::vector<Core::FMTGCBMtransition>& transitions, const std::string& location) const;
105 // DocString: FMTtransitionparser::readGCBM
109 std::vector<Core::FMTGCBMtransition>readGCBM(const std::string& location) const;
110 };
111}
112#endif // FMTtransitionparser_H_INCLUDED
#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)
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