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
39struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
40{
41 __event_attrib_class_name(__this_event_name)();
42 ~__event_attrib_class_name(__this_event_name)();
43
45
46 /* species name (identifier) */
47 std::string name;
48
53 double reduction_number;
58 double reduction_volume;
63 bool export_sap_wood;
68 bool export_core_wood;
73 double export_foliage;
78 double export_stem_wood;
79
84 double export_branch_wood;
85
90 double export_root_wood;
91};
92class CBM_API __event_class_name(__this_event_name) : public Event
93{
94 /* default constructor, event attribute pointer, ... */
95 EVENT_COMMON_DECL(__this_event_name)
96
97public:
98 char const * species_name() const
99 { return this->attribs_->name.c_str(); }
100
101 double reduction_number() const
102 { return this->attribs_->reduction_number; }
103 double reduction_volume() const
104 { return this->attribs_->reduction_volume; }
105
106 bool export_sap_wood() const
107 { return this->attribs_->export_sap_wood; }
108 bool export_core_wood() const
109 { return this->attribs_->export_core_wood; }
110
111 double export_foliage() const
112 { return this->attribs_->export_foliage; }
113 double export_stem_wood() const
114 { return this->attribs_->export_stem_wood; }
115 double export_branch_wood() const
116 { return this->attribs_->export_branch_wood; }
117 double export_root_wood() const
118 { return this->attribs_->export_root_wood; }
119};
120}}
121
122#endif /* !LDNDC_INPUT_EVENT_THIN_H_ */
123
Spatially explicit groundwater model.
Definition airchemistryput.h:15