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 /****************************************************************************/
15 // Definition of an own event class
16 /****************************************************************************/
17 #ifndef GUIEvent_h
18 #define GUIEvent_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
28 #include <fx.h>
29 
30 
38 
41 
44 
47 
50 
53 
56 
59 
64 
67 };
68 
69 
70 // ===========================================================================
71 // class definitions
72 // ===========================================================================
77 class GUIEvent {
78 public:
81  return myType;
82  }
83 
85  virtual ~GUIEvent() { }
86 
87 protected:
90  myType(ownType) { }
91 
94 };
95 
96 
97 #endif
98 
99 /****************************************************************************/
100 
EVENT_MESSAGE_OCCURRED
send when a message occured
Definition: GUIEvent.h:43
GUIEventType
GUIEventType
Definition: GUIEvent.h:35
EVENT_STATUS_OCCURRED
send when a status change occured
Definition: GUIEvent.h:58
EVENT_SIMULATION_ENDED
Send when the simulation is over;.
Definition: GUIEvent.h:63
GUIEvent::GUIEvent
GUIEvent(GUIEventType ownType)
constructor
Definition: GUIEvent.h:89
EVENT_DEBUG_OCCURRED
send when a debug occured
Definition: GUIEvent.h:52
EVENT_WARNING_OCCURRED
send when a warning occured
Definition: GUIEvent.h:46
GUIEvent::~GUIEvent
virtual ~GUIEvent()
destructor
Definition: GUIEvent.h:85
EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition: GUIEvent.h:37
EVENT_GLDEBUG_OCCURRED
send when a gldebug occured
Definition: GUIEvent.h:55
EVENT_SIMULATION_STEP
send when a simulation step has been performed
Definition: GUIEvent.h:40
EVENT_ERROR_OCCURRED
send when a error occured
Definition: GUIEvent.h:49
GUIEvent::getOwnType
GUIEventType getOwnType() const
returns the event type
Definition: GUIEvent.h:80
EVENT_END
End of events list; use this to define new.
Definition: GUIEvent.h:66
GUIEvent
Definition: GUIEvent.h:77
FXBaseObject.h
FXThreadEvent.h
config.h
GUIEvent::myType
GUIEventType myType
the type of the event
Definition: GUIEvent.h:93