LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-thin.h
1
13
14#ifndef LDNDC_INPUT_EVENT_THIN_H_
15#define LDNDC_INPUT_EVENT_THIN_H_
16
17#include "event/events/eventbase.h"
18
19#ifdef __this_event_name
20# undef __this_event_name
21#endif
22#define __this_event_name thin
23
24namespace ldndc{
25namespace event{
26
38struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
39{
40 __event_attrib_class_name(__this_event_name)();
41 ~__event_attrib_class_name(__this_event_name)();
42
44
45 /* species name (identifier) */
46 std::string name;
47
52 double reduction_number;
57 double reduction_volume;
62 bool export_sap_wood;
67 bool export_core_wood;
72 double export_foliage;
77 double export_stem_wood;
78
83 double export_branch_wood;
84
89 double export_root_wood;
90};
91class CBM_API __event_class_name(__this_event_name) : public Event
92{
93 /* default constructor, event attribute pointer, ... */
94 EVENT_COMMON_DECL(__this_event_name)
95
96public:
97 char const * species_name() const
98 { return this->attribs_->name.c_str(); }
99
100 double reduction_number() const
101 { return this->attribs_->reduction_number; }
102 double reduction_volume() const
103 { return this->attribs_->reduction_volume; }
104
105 bool export_sap_wood() const
106 { return this->attribs_->export_sap_wood; }
107 bool export_core_wood() const
108 { return this->attribs_->export_core_wood; }
109
110 double export_foliage() const
111 { return this->attribs_->export_foliage; }
112 double export_stem_wood() const
113 { return this->attribs_->export_stem_wood; }
114 double export_branch_wood() const
115 { return this->attribs_->export_branch_wood; }
116 double export_root_wood() const
117 { return this->attribs_->export_root_wood; }
118};
119}}
120
121#endif /* !LDNDC_INPUT_EVENT_THIN_H_ */
122
Spatially explicit groundwater model.
Definition airchemistryput.h:15