LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
event-luc.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
16
17#ifndef LDNDC_INPUT_EVENT_LUC_H_
18#define LDNDC_INPUT_EVENT_LUC_H_
19
20#include "event/events/eventbase.h"
21
22
23#ifdef __this_event_name
24# undef __this_event_name
25#endif
26#define __this_event_name luc
27
28namespace ldndc{ namespace event{
29struct CBM_API __event_attrib_class_name(__this_event_name) : event_attribute_t
30{
31 enum command_e
32 {
33 LUC_MODULE_ADD,
34 LUC_MODULE_DEL,
35 LUC_MODULE_REPLACE,
36 LUC_MODULE_SLEEP,
37 LUC_MODULE_WAKE,
38
39 LUC_COMMAND_CNT,
40 LUC_COMMAND_NONE
41 };
42 static char const * COMMAND_NAMES[LUC_COMMAND_CNT+2];
43 static char const * LUC_REPLACE_DELIM;
44 static char const LUC_ARGS_DELIM;
45
46 __event_attrib_class_name(__this_event_name)();
47 ~__event_attrib_class_name(__this_event_name)();
48
50 command_e command;
52 std::string args;
53};
54class CBM_API __event_class_name(__this_event_name) : public Event
55{
56 EVENT_COMMON_DECL(__this_event_name)
57
58 public:
59 __event_attrib_class_name(__this_event_name)::command_e command() const
60 { return this->attribs_->command; }
61
62 std::string const & args() const
63 { return this->attribs_->args; }
64};
65}}
66
67#endif /* !LDNDC_INPUT_EVENT_LUC_H_ */
68
Spatially explicit groundwater model.
Definition airchemistryput.h:21