FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTLifespanParser.h
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 FMTlifespanparser_Hm_included
9#define FMTlifespanparser_Hm_included
10
11
12#include "FMTParser.h"
13#include <string>
14
15namespace Core {
16 class FMTLifespans;
17 class FMTTheme;
18 class FMTConstants;
19}
20
21namespace Parser
22
23{
24// DocString: FMTLifespanParser
29 {
30 public:
31 // DocString: FMTLifespanParser()
36 // DocString: ~FMTLifespanParser()
40 ~FMTLifespanParser() = default;
41 // DocString: FMTLifespanParser(const FMTLifespanParser&)
47 // DocString: FMTLifespanParser::operator=
53 FMTLifespanParser& operator = (const FMTLifespanParser& rhs);
54 // DocString: FMTLifespanParser::read
62 Core::FMTLifespans read(const std::vector<Core::FMTTheme>& themes,const Core::FMTConstants& constants,const std::string& location);
63 // DocString: FMTLifespanParser::write
69 void write(const Core::FMTLifespans& lifespan,const std::string& location) const;
70 };
71
72}
73
74
75#endif // FMTlifespanparser_Hm_included
#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
List holding the maximum age of aggregates of developments.
Definition: FMTLifespans.h:23
Parser reading and writing the lifespan section of the model.
Definition: FMTLifespanParser.h:29
~FMTLifespanParser()=default
Default destructor for FMTLifespanParser.
FMTLifespanParser(const FMTLifespanParser &rhs)
Copy constructor for FMTLifespanParser.
void write(const Core::FMTLifespans &lifespan, const std::string &location) const
Write the lifespan section.
Core::FMTLifespans read(const std::vector< Core::FMTTheme > &themes, const Core::FMTConstants &constants, const std::string &location)
Read the lifespan section.
FMTLifespanParser()
Default constructor for FMTLifespanParser.
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