LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-regrow.h
1
10
11#ifndef LDNDC_INPUT_EVENT_REGROW_H_
12#define LDNDC_INPUT_EVENT_REGROW_H_
13
14#include "event/events/eventbase.h"
15
16#ifdef __this_event_name
17# undef __this_event_name
18#endif
19#define __this_event_name regrow
20
21namespace ldndc{ namespace event{
22struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
23{
24 __event_attrib_class_name(__this_event_name)();
25 ~__event_attrib_class_name(__this_event_name)();
26
28
29 /* species name (identifier) */
30 std::string name;
31
33 double height_max;
34
36 double tree_number;
37
39 double tree_number_resize_factor;
40
42 double export_aboveground_biomass;
43};
44
45class CBM_API __event_class_name(__this_event_name) : public Event
46{
47 /* default constructor, event attribute pointer, ... */
48 EVENT_COMMON_DECL(__this_event_name)
49
50 public:
51 char const * species_name() const
52 { return this->attribs_->name.c_str(); }
53 double tree_number() const
54 { return this->attribs_->tree_number; }
55 double tree_number_resize_factor() const
56 { return this->attribs_->tree_number_resize_factor; }
57 double height_max() const
58 { return this->attribs_->height_max; }
59 double export_aboveground_biomass() const
60 { return this->attribs_->export_aboveground_biomass; }
61};
62}}
63
64#endif /* !LDNDC_INPUT_EVENT_REGROW_H_ */
65
Spatially explicit groundwater model.
Definition airchemistryput.h:15