FMT 1.2.0
Forest management tools for forest planning
Loading...
Searching...
No Matches
FMTSerie.h
Go to the documentation of this file.
1/*
2Copyright (c) 2024 Gouvernement du Québec
3
4SPDX-License-Identifier: LiLiQ-R-1.1
5License-Filename: LICENSES/EN/LiLiQ-R11unicode.txt
6*/
7
8#ifndef FMTSerie_Hm_included
9#define FMTSerie_Hm_included
10
11#include <string>
12#include <vector>
13#include "FMTutility.h"
14
15
16namespace Core
17{
18// DocString: FMTSerie
23 {
24 public:
25 // DocString: FMTSerie()
30 // DocString: FMTSerie(const std::string&, int)
36 FMTSerie(const std::string& p_serie, int p_length);
37 // DocString: FMTSerie(const std::vector<std::string>&, int)
43 FMTSerie(const std::vector<std::string>& p_serie, int p_length);
44 // DocString: FMTSerie(const std::vector<std::string>&, bool, bool)
51 FMTSerie(const std::vector<std::string>& p_serie,
52 bool p_asap, bool p_alap);
53 // DocString: FMTSerie::getLength
58 int getLength() const;
59 // DocString: FMTSerie::getActions
64 const std::vector<std::string>& getActions() const;
65 // DocString: FMTSerie::getSerie
70 const std::string getSerie() const;
71 // DocString: FMTSerie::operator std::string
76 operator std::string() const;
77 // DocString: FMTSerie::operator==
83 bool operator == (const FMTSerie& p_RHS) const;
84 // DocString: FMTSerie::operator!=
90 bool operator != (const FMTSerie& p_RHS) const;
91 // DocString: FMTSerie::operator<
97 bool operator < (const FMTSerie & p_RHS) const;
98 // DocString: FMTSerie::operator>
104 bool operator > (const FMTSerie& p_RHS) const;
105 // DocString: FMTSerie::isASAP
110 bool isASAP() const;
111 // DocString: FMTSerie::isALAP
116 bool isALAP() const;
117 // DocString: FMTSerie::getLength
123 bool isAllowedInSerie(const std::vector<std::string>& p_SerieMask) const;
124 // DocString: FMTSerie::isEmpty
129 bool isEmpty() const;
130 private:
131 // DocString: FMTSerie::m_serie
133 std::vector<std::string> m_serie;
134 // DocString: FMTSerie::m_length
136 int m_length;
137 // DocString: FMTSerie::m_SEPERATOR
139 static const std::string m_SEPERATOR;
140
141 };
142
143}
144
145#endif // FMTSerie_Hm_included
#define FMTEXPORT
Definition: FMTutility.h:125
Class keeping the information of a serie of actions in a given order.
Definition: FMTSerie.h:23
bool isAllowedInSerie(const std::vector< std::string > &p_SerieMask) const
Return true if the given actions are allowed in the serie.
const std::vector< std::string > & getActions() const
Return the actions of the serie.
FMTSerie(const std::vector< std::string > &p_serie, int p_length)
Initialize a serie from a vector of strings.
const std::string getSerie() const
Return the string of the serie.
bool isALAP() const
Return true if the serie is as late as possible.
FMTSerie(const std::string &p_serie, int p_length)
Initialize a serie from a string description.
FMTSerie()
Default constructor for FMTSerie.
int getLength() const
Return the length of the serie.
bool isASAP() const
Return true if the serie is as soon as possible.
FMTSerie(const std::vector< std::string > &p_serie, bool p_asap, bool p_alap)
Initialize a serie from a vector of strings with ASAP and ALAP flags.
bool isEmpty() const
Return true if the serie is empty.
The Core namespace provides classes for simulating stands/strata growth/harvest through time.
Definition: FMTAction.h:34