LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-cut.h
1
12
13#ifndef LDNDC_INPUT_EVENT_CUT_H_
14#define LDNDC_INPUT_EVENT_CUT_H_
15
16#include "event/events/eventbase.h"
17#include "species/speciestypes.h"
18
19
20#ifdef __this_event_name
21# undef __this_event_name
22#endif
23#define __this_event_name cut
24
25namespace ldndc{
26namespace event{
27
48struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
49{
50 __event_attrib_class_name(__this_event_name)();
51 ~__event_attrib_class_name(__this_event_name)();
52
59 std::string name;
60
65 double height;
66
71 double remains_relative;
72
77 double remains_absolute;
78
83 double remains_absolute_fruit;
84
89 double remains_absolute_foliage;
90
95 double remains_absolute_living_structural_tissue;
96
101 double remains_absolute_dead_structural_tissue;
102
107 double remains_absolute_root;
108
113 double export_fruit;
114
119 double export_foliage;
120
125 double export_living_structural_tissue;
126
131 double export_dead_structural_tissue;
132
137 double export_root;
138
139 bool mulching;
140};
141class CBM_API __event_class_name(__this_event_name) : public Event
142{
143 EVENT_COMMON_DECL(__this_event_name)
144
145 public:
146
147 char const * species_name() const
148 { return this->attribs_->name.c_str(); }
149
150 double height() const
151 { return this->attribs_->height; }
152
153 double remains_relative() const
154 { return this->attribs_->remains_relative; }
155 double remains_absolute() const
156 { return this->attribs_->remains_absolute; }
157
158 double remains_absolute_fruit() const
159 { return this->attribs_->remains_absolute_fruit; }
160 double remains_absolute_foliage() const
161 { return this->attribs_->remains_absolute_foliage; }
162 double remains_absolute_living_structural_tissue() const
163 { return this->attribs_->remains_absolute_living_structural_tissue; }
164 double remains_absolute_dead_structural_tissue() const
165 { return this->attribs_->remains_absolute_dead_structural_tissue; }
166 double remains_absolute_root() const
167 { return this->attribs_->remains_absolute_root; }
168
169 double export_fruit() const
170 { return this->attribs_->export_fruit; }
171 double export_foliage() const
172 { return this->attribs_->export_foliage; }
173 double export_living_structural_tissue() const
174 { return this->attribs_->export_living_structural_tissue; }
175 double export_dead_structural_tissue() const
176 { return this->attribs_->export_dead_structural_tissue; }
177 double export_root() const
178 { return this->attribs_->export_root; }
179
180 bool mulching() const
181 { return this->attribs_->mulching; }
182};
183}}
184
185#endif /* !LDNDC_INPUT_EVENT_CUT_H_ */
186
Spatially explicit groundwater model.
Definition airchemistryput.h:15