FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTGCBMtransition.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 FMTGCBMTRANSITION_H_INCLUDED
9#define FMTGCBMTRANSITION_H_INCLUDED
10
11#include <map>
12#include <string>
13#include <boost/serialization/string.hpp>
14#include <boost/serialization/serialization.hpp>
15#include <boost/serialization/export.hpp>
16#include "FMTobject.hpp"
17
18
19
20namespace Core
21{
22 // DocString: FMTGCBMtransition
28 {
29 // DocString: FMTGCBMtransition::serialize
33 friend class boost::serialization::access;
34 template<class Archive>
35 void serialize(Archive& ar, const unsigned int version)
36 {
37 ar & BOOST_SERIALIZATION_NVP(ageafter);
38 ar & BOOST_SERIALIZATION_NVP(themes);
39 ar & BOOST_SERIALIZATION_NVP(name);
40 }
41 public:
42 // DocString: FMTGCBMtransition::ageafter
45 // DocString: FMTGCBMtransition::themes
47 std::map<std::string, std::string>themes;
48 // DocString: FMTGCBMtransition::name
50 std::string name;
51 // DocString: FMTGCBMtransition()
56 // DocString: FMTGCBMtransition(const int&,const std::map<std::string, std::string>&,const std::string&)
60 FMTGCBMtransition(const int& lageafter, const std::map<std::string, std::string>& lthemes, const std::string& lname);
61 // DocString: FMTGCBMtransition(const FMTGCBMtransition&)
66 // DocString: FMTGCBMtransition::operator=
70 FMTGCBMtransition& operator = (const FMTGCBMtransition& rhs);
71 // DocString: FMTGCBMtransition::operator==
75 bool operator == (const FMTGCBMtransition& rhs) const;
76 // DocString: FMTGCBMtransition::operator!=
80 bool operator != (const FMTGCBMtransition& rhs) const;
81 // DocString: ~FMTGCBMtransition()
86 };
87}
88#endif
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTGCBMtransition.hpp:28
FMTGCBMtransition(const int &lageafter, const std::map< std::string, std::string > &lthemes, const std::string &lname)
FMTGCBMtransition(const FMTGCBMtransition &rhs)
std::map< std::string, std::string > themes
Map where's the key is the theme name and the element is the new attribute set after the transition.
Definition: FMTGCBMtransition.hpp:47
int ageafter
Describe the age set on the strata after the disturbance.
Definition: FMTGCBMtransition.hpp:44
std::string name
The name of the GCBM transition.
Definition: FMTGCBMtransition.hpp:50
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTaction.hpp:31