LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-fertilize.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
20
21#ifndef LDNDC_INPUT_EVENT_FERTILIZE_H_
22#define LDNDC_INPUT_EVENT_FERTILIZE_H_
23
24#include "event/events/eventbase.h"
25
26
27#ifdef __this_event_name
28# undef __this_event_name
29#endif
30#define __this_event_name fertilize
31
32namespace ldndc{
33namespace event{
34
93struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
94{
95 __event_attrib_class_name(__this_event_name)();
96 ~__event_attrib_class_name(__this_event_name)();
97
99 cbm::string_t type;
100
102 cbm::string_t location;
103
105 double amount;
106
108 double ni_amount;
109
111 double ui_amount;
112
114 cbm::string_t ni_type;
115
117 cbm::string_t ui_type;
118
120 double p_amount;
121
123 double depth;
124
131 event_trigger_t trigger;
132};
133
134class CBM_API __event_class_name(__this_event_name) : public Event
135{
136 EVENT_COMMON_DECL(__this_event_name)
137
138 public:
139 cbm::string_t const & type() const
140 { return this->attribs_->type; }
141
142 cbm::string_t const & location() const
143 { return this->attribs_->location; }
144
145 double amount() const
146 { return this->attribs_->amount; }
147
148 double ni_amount() const
149 { return this->attribs_->ni_amount; }
150
151 double ui_amount() const
152 { return this->attribs_->ui_amount; }
153
154 cbm::string_t const & ni_type() const
155 { return this->attribs_->ni_type; }
156
157 cbm::string_t const & ui_type() const
158 { return this->attribs_->ui_type; }
159
160 double p_amount() const
161 { return this->attribs_->p_amount; }
162
163 double depth() const
164 { return this->attribs_->depth; }
165
167 event_trigger_t const & trigger() const
168 { return this->attribs_->trigger; }
169};
170}}
171
172#endif /* !LDNDC_INPUT_EVENT_FERTILIZE_H_ */
Spatially explicit groundwater model.
Definition airchemistryput.h:21