Eclipse SUMO - Simulation of Urban MObility
GUIEvent.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // Definition of an own event class
15 /****************************************************************************/
16 #ifndef GUIEvent_h
17 #define GUIEvent_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
27 #include <fx.h>
28 
29 
37 
40 
43 
46 
49 
52 
55 
58 
63 
66 };
67 
68 
69 // ===========================================================================
70 // class definitions
71 // ===========================================================================
76 class GUIEvent {
77 public:
80  return myType;
81  }
82 
84  virtual ~GUIEvent() { }
85 
86 protected:
89  myType(ownType) { }
90 
93 };
94 
95 
96 #endif
97 
98 /****************************************************************************/
99 
EVENT_MESSAGE_OCCURRED
send when a message occured
Definition: GUIEvent.h:42
GUIEventType
GUIEventType
Definition: GUIEvent.h:34
EVENT_STATUS_OCCURRED
send when a status change occured
Definition: GUIEvent.h:57
EVENT_SIMULATION_ENDED
Send when the simulation is over;.
Definition: GUIEvent.h:62
GUIEvent::GUIEvent
GUIEvent(GUIEventType ownType)
constructor
Definition: GUIEvent.h:88
EVENT_DEBUG_OCCURRED
send when a debug occured
Definition: GUIEvent.h:51
EVENT_WARNING_OCCURRED
send when a warning occured
Definition: GUIEvent.h:45
GUIEvent::~GUIEvent
virtual ~GUIEvent()
destructor
Definition: GUIEvent.h:84
EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition: GUIEvent.h:36
EVENT_GLDEBUG_OCCURRED
send when a gldebug occured
Definition: GUIEvent.h:54
EVENT_SIMULATION_STEP
send when a simulation step has been performed
Definition: GUIEvent.h:39
EVENT_ERROR_OCCURRED
send when a error occured
Definition: GUIEvent.h:48
GUIEvent::getOwnType
GUIEventType getOwnType() const
returns the event type
Definition: GUIEvent.h:79
EVENT_END
End of events list; use this to define new.
Definition: GUIEvent.h:65
GUIEvent
Definition: GUIEvent.h:76
FXBaseObject.h
FXThreadEvent.h
config.h
GUIEvent::myType
GUIEventType myType
the type of the event
Definition: GUIEvent.h:92