LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-defoliate.h
1
10
11#ifndef LDNDC_INPUT_EVENT_DEFOLIATE_H_
12#define LDNDC_INPUT_EVENT_DEFOLIATE_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 defoliate
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 reduction_volume;
34
36 bool export_foliage;
37
38};
39class CBM_API __event_class_name(__this_event_name) : public Event
40{
41 /* default constructor, event attribute pointer, ... */
42 EVENT_COMMON_DECL(__this_event_name)
43
44 public:
45 char const * species_name() const
46 { return this->attribs_->name.c_str(); }
47 double reduction_volume() const
48 { return this->attribs_->reduction_volume; }
49 bool export_foliage() const
50 { return this->attribs_->export_foliage; }
51};
52}}
53
54#endif /* !LDNDC_INPUT_EVENT_DEFOLIATE_H_ */
55
Spatially explicit groundwater model.
Definition airchemistryput.h:15