LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-defoliate.h
1/*
2 * SPDX-FileCopyrightText: Karlsruhe Institute of Technology (KIT)
3 * SPDX-License-Identifier: LicenseRef-Crabmeat
4 * This file is part of Crabmeat. Redistribution or commercial use is
5 * prohibited without express written permission. See LICENCE.
6 */
7
17
18#ifndef LDNDC_INPUT_EVENT_DEFOLIATE_H_
19#define LDNDC_INPUT_EVENT_DEFOLIATE_H_
20
21#include "event/events/eventbase.h"
22
23#ifdef __this_event_name
24# undef __this_event_name
25#endif
26#define __this_event_name defoliate
27
28namespace ldndc{ namespace event{
29struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
30{
31 __event_attrib_class_name(__this_event_name)();
32 ~__event_attrib_class_name(__this_event_name)();
33
35
36 /* species name (identifier) */
37 std::string name;
38
40 double reduction_volume;
41
43 bool export_foliage;
44
45};
46class CBM_API __event_class_name(__this_event_name) : public Event
47{
48 /* default constructor, event attribute pointer, ... */
49 EVENT_COMMON_DECL(__this_event_name)
50
51 public:
52 char const * species_name() const
53 { return this->attribs_->name.c_str(); }
54 double reduction_volume() const
55 { return this->attribs_->reduction_volume; }
56 bool export_foliage() const
57 { return this->attribs_->export_foliage; }
58};
59}}
60
61#endif /* !LDNDC_INPUT_EVENT_DEFOLIATE_H_ */
62
Spatially explicit groundwater model.
Definition airchemistryput.h:21