FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTlandscapeparser.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 FMTlandscapeparser_H_INCLUDED
9#define FMTlandscapeparser_H_INCLUDED
10
11
12#include "FMTparser.hpp"
13#include "FMTutility.hpp"
14#include <boost/regex.hpp>
15#include <string>
16#include <map>
17#include <vector>
18
19namespace Core
20{
21 class FMTtheme;
22 class FMTconstants;
23}
24
25
26namespace Parser
27{
28// DocString: FMTlandscapeparser
36 {
37 private:
38 // DocString: FMTlandscapeparser::rxcleanlans
40 const static boost::regex rxcleanlans;
41 // DocString: FMTlandscapeparser::rxindex
43 const static boost::regex rxindex;
44 // DocString: FMTlandscapeparser::rxparameter
46 const static boost::regex rxparameter;
47 // DocString: FMTlandscapeparser::getindexes
53 std::map<std::string,double>getindexes(std::string index_line,const Core::FMTconstants& constants);
54 public:
55 // DocString: FMTlandscapeparser::FMTlandscapeparser()
60 // DocString: FMTlandscapeparser::~FMTlandscapeparser()
65 // DocString: FMTlandscapeparser::FMTlandscapeparser(const FMTlandscapeparser&)
70 // DocString: FMTlandscapeparser::operator=
74 FMTlandscapeparser& operator = (const FMTlandscapeparser& rhs)=default;
75 // DocString: FMTlandscapeparser::read
80 std::vector<Core::FMTtheme>read(const Core::FMTconstants& constants,const std::string& location);
81 #ifdef FMTWITHGDAL
82 // DocString: FMTlandscapeparser::readvectors
87 std::vector<Core::FMTtheme>readvectors(const std::string& location);
88 // DocString: FMTlandscapeparser::readrasters
93 std::vector<Core::FMTtheme>readrasters(const std::vector< std::string>& locations);
94 #endif
95 // DocString: FMTlandscapeparser::write
99 void write(const std::vector<Core::FMTtheme>& themes,const std::string& location) const;
100 };
101}
102
103
104#endif // FMTlandscapeparser_H_INCLUDED
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTconstants.hpp:29
Definition: FMTlandscapeparser.hpp:36
FMTlandscapeparser(const FMTlandscapeparser &rhs)=default
std::vector< Core::FMTtheme > readrasters(const std::vector< std::string > &locations)
std::vector< Core::FMTtheme > readvectors(const std::string &location)
void write(const std::vector< Core::FMTtheme > &themes, const std::string &location) const
std::vector< Core::FMTtheme > read(const Core::FMTconstants &constants, const std::string &location)
Definition: FMTparser.hpp:66
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31
Namespace handling all FMT's parsers. Everything related to I/O should be located in this namespace.
Definition: FMTactionparser.hpp:26