LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-harvest.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_HARVEST_H_
24#define LDNDC_INPUT_EVENT_HARVEST_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 harvest
34
35namespace ldndc{
36namespace event{
37
85struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
86{
87 __event_attrib_class_name(__this_event_name)();
88 ~__event_attrib_class_name(__this_event_name)();
89
96 std::string name;
97
102 double height;
103
108 double remains_relative;
109
114 double remains_absolute;
115
120 double export_stem_wood;
121
126 double export_branch_wood;
127
132 double export_root_wood;
133
134 bool mulching;
135
141 std::string follow_type;
142
147 int follow_delay;
148
153 double follow_till_depth;
154
162 event_trigger_t trigger;
163};
164class CBM_API __event_class_name(__this_event_name) : public Event
165{
166 EVENT_COMMON_DECL(__this_event_name)
167
168 public:
169
170 char const * species_name() const
171 { return this->attribs_->name.c_str(); }
172
173 double height() const
174 { return this->attribs_->height; }
175
176 double remains_relative() const
177 { return this->attribs_->remains_relative; }
178 double remains_absolute() const
179 { return this->attribs_->remains_absolute; }
180
181 double export_stem_wood() const
182 { return this->attribs_->export_stem_wood; }
183 double export_branch_wood() const
184 { return this->attribs_->export_branch_wood; }
185 double export_root_wood() const
186 { return this->attribs_->export_root_wood; }
187
188 bool mulching() const
189 { return this->attribs_->mulching; }
190
198 bool have_follow() const
199 { return !this->attribs_->follow_type.empty(); }
200 char const * follow_type() const
201 { return this->attribs_->follow_type.c_str(); }
202 int follow_delay() const
203 { return this->attribs_->follow_delay; }
204 double follow_till_depth() const
205 { return this->attribs_->follow_till_depth; }
206
208 event_trigger_t const & trigger() const
209 { return this->attribs_->trigger; }
210};
211}}
212
213#endif /* !LDNDC_INPUT_EVENT_HARVEST_H_ */
214
Spatially explicit groundwater model.
Definition airchemistryput.h:21