LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-harvest.h
1
12
13#ifndef LDNDC_INPUT_EVENT_HARVEST_H_
14#define LDNDC_INPUT_EVENT_HARVEST_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 harvest
24
25namespace ldndc{
26namespace event{
27
41struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
42{
43 __event_attrib_class_name(__this_event_name)();
44 ~__event_attrib_class_name(__this_event_name)();
45
52 std::string name;
53
58 double height;
59
64 double remains_relative;
65
70 double remains_absolute;
71
76 double export_stem_wood;
77
82 double export_branch_wood;
83
88 double export_root_wood;
89
90 bool mulching;
91};
92class CBM_API __event_class_name(__this_event_name) : public Event
93{
94 EVENT_COMMON_DECL(__this_event_name)
95
96 public:
97
98 char const * species_name() const
99 { return this->attribs_->name.c_str(); }
100
101 double height() const
102 { return this->attribs_->height; }
103
104 double remains_relative() const
105 { return this->attribs_->remains_relative; }
106 double remains_absolute() const
107 { return this->attribs_->remains_absolute; }
108
109 double export_stem_wood() const
110 { return this->attribs_->export_stem_wood; }
111 double export_branch_wood() const
112 { return this->attribs_->export_branch_wood; }
113 double export_root_wood() const
114 { return this->attribs_->export_root_wood; }
115
116 bool mulching() const
117 { return this->attribs_->mulching; }
118};
119}}
120
121#endif /* !LDNDC_INPUT_EVENT_HARVEST_H_ */
122
Spatially explicit groundwater model.
Definition airchemistryput.h:15