blob: 7ad942371e93929ab2723ffa147ef6bb164120be [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright (c) 2019, Infosys Ltd.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef EVENT_H_
18#define EVENT_H_
19
20#include <string>
21#include <map>
22
23#include "smEnumTypes.h"
24
25using namespace std;
26
27namespace SM
28{
29 class Event
30 {
31 public:
32 Event();
33 Event(Event_e evtID, void* eventData);
34 virtual ~Event();
35
36 inline Event_e getEventId()const
37 {
38 return eventID;
39 }
40
41 void* getEventData() const;
42
43 virtual void display();
44
45 private:
46 Event_e eventID;
47 void * eventData_p;
48 };
49}
50
51#endif /* EVENT_H_ */