LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-thin.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
23
24#ifndef LDNDC_INPUT_EVENT_THIN_H_
25#define LDNDC_INPUT_EVENT_THIN_H_
26
27#include "event/events/eventbase.h"
28
29#ifdef __this_event_name
30# undef __this_event_name
31#endif
32#define __this_event_name thin
33
34namespace ldndc{
35namespace event{
36
71struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
72{
73 __event_attrib_class_name(__this_event_name)();
74 ~__event_attrib_class_name(__this_event_name)();
75
77
78 /* species name (identifier) */
79 std::string name;
80
85 double reduction_number;
90 double reduction_volume;
95 bool export_sap_wood;
100 bool export_core_wood;
105 double export_foliage;
110 double export_stem_wood;
111
116 double export_branch_wood;
117
122 double export_root_wood;
123
131 event_trigger_t trigger;
132};
133class CBM_API __event_class_name(__this_event_name) : public Event
134{
135 /* default constructor, event attribute pointer, ... */
136 EVENT_COMMON_DECL(__this_event_name)
137
138public:
139 char const * species_name() const
140 { return this->attribs_->name.c_str(); }
141
142 double reduction_number() const
143 { return this->attribs_->reduction_number; }
144 double reduction_volume() const
145 { return this->attribs_->reduction_volume; }
146
147 bool export_sap_wood() const
148 { return this->attribs_->export_sap_wood; }
149 bool export_core_wood() const
150 { return this->attribs_->export_core_wood; }
151
152 double export_foliage() const
153 { return this->attribs_->export_foliage; }
154 double export_stem_wood() const
155 { return this->attribs_->export_stem_wood; }
156 double export_branch_wood() const
157 { return this->attribs_->export_branch_wood; }
158 double export_root_wood() const
159 { return this->attribs_->export_root_wood; }
160
162 event_trigger_t const & trigger() const
163 { return this->attribs_->trigger; }
164};
165}}
166
167#endif /* !LDNDC_INPUT_EVENT_THIN_H_ */
168
Spatially explicit groundwater model.
Definition airchemistryput.h:21