Chi-Tech
Event.h
Go to the documentation of this file.
1#ifndef CHITECH_EVENT_H
2#define CHITECH_EVENT_H
3
5
6#include <string>
7
8namespace chi
9{
10
11class Event
12{
13public:
14 Event(const std::string& name, int code);
15 Event(const std::string& name,
16 int code,
17 const ParameterBlock& parameter_block);
18 const std::string& Name() const;
19 int Code() const;
20 const ParameterBlock& Parameters() const;
21
22 virtual ~Event() = default;
23
24protected:
25 const std::string name_;
26 const int code_ = 0;
28};
29
30} // namespace chi
31
32#endif // CHITECH_EVENT_H
const int code_
Definition: Event.h:26
const std::string name_
Definition: Event.h:25
virtual ~Event()=default
Event(const std::string &name, int code)
Definition: Event.cc:6
const ParameterBlock params_
Definition: Event.h:27
int Code() const
Definition: Event.cc:19
const ParameterBlock & Parameters() const
Definition: Event.cc:20
const std::string & Name() const
Definition: Event.cc:18