LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-cut.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-Crabmeat
4 * This file is part of Crabmeat. Redistribution or commercial use is
5 * prohibited without express written permission. See LICENCE.
6 */
7
22
23#ifndef LDNDC_INPUT_EVENT_CUT_H_
24#define LDNDC_INPUT_EVENT_CUT_H_
25
26#include "event/events/eventbase.h"
27#include "species/speciestypes.h"
28
29
30#ifdef __this_event_name
31# undef __this_event_name
32#endif
33#define __this_event_name cut
34
35namespace ldndc{
36namespace event{
37
78struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
79{
80 __event_attrib_class_name(__this_event_name)();
81 ~__event_attrib_class_name(__this_event_name)();
82
89 std::string name;
90
95 double height;
96
101 double remains_relative;
102
107 double remains_absolute;
108
113 double remains_absolute_fruit;
114
119 double remains_absolute_foliage;
120
125 double remains_absolute_living_structural_tissue;
126
131 double remains_absolute_dead_structural_tissue;
132
137 double remains_absolute_root;
138
143 double export_fruit;
144
149 double export_foliage;
150
155 double export_living_structural_tissue;
156
161 double export_dead_structural_tissue;
162
167 double export_root;
168
169 bool mulching;
170
178 event_trigger_t trigger;
179};
180class CBM_API __event_class_name(__this_event_name) : public Event
181{
182 EVENT_COMMON_DECL(__this_event_name)
183
184 public:
185
186 char const * species_name() const
187 { return this->attribs_->name.c_str(); }
188
189 double height() const
190 { return this->attribs_->height; }
191
192 double remains_relative() const
193 { return this->attribs_->remains_relative; }
194 double remains_absolute() const
195 { return this->attribs_->remains_absolute; }
196
197 double remains_absolute_fruit() const
198 { return this->attribs_->remains_absolute_fruit; }
199 double remains_absolute_foliage() const
200 { return this->attribs_->remains_absolute_foliage; }
201 double remains_absolute_living_structural_tissue() const
202 { return this->attribs_->remains_absolute_living_structural_tissue; }
203 double remains_absolute_dead_structural_tissue() const
204 { return this->attribs_->remains_absolute_dead_structural_tissue; }
205 double remains_absolute_root() const
206 { return this->attribs_->remains_absolute_root; }
207
208 double export_fruit() const
209 { return this->attribs_->export_fruit; }
210 double export_foliage() const
211 { return this->attribs_->export_foliage; }
212 double export_living_structural_tissue() const
213 { return this->attribs_->export_living_structural_tissue; }
214 double export_dead_structural_tissue() const
215 { return this->attribs_->export_dead_structural_tissue; }
216 double export_root() const
217 { return this->attribs_->export_root; }
218
219 bool mulching() const
220 { return this->attribs_->mulching; }
221
223 event_trigger_t const & trigger() const
224 { return this->attribs_->trigger; }
225};
226}}
227
228#endif /* !LDNDC_INPUT_EVENT_CUT_H_ */
229
Spatially explicit groundwater model.
Definition airchemistryput.h:21