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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // Definition of an own event class
18 /****************************************************************************/
19 #ifndef GUIEvent_h
20 #define GUIEvent_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
34 #include <fx.h>
35 
36 
44 
47 
50 
53 
56 
59 
63 
67 
70 };
71 
72 
73 // ===========================================================================
74 // class definitions
75 // ===========================================================================
80 class GUIEvent {
81 public:
84  return myType;
85  }
86 
88  virtual ~GUIEvent() { }
89 
90 protected:
93  : myType(ownType) { }
94 
95 
96 protected:
99 
100 };
101 
102 
103 #endif
104 
105 /****************************************************************************/
106 
GUIEvent(GUIEventType ownType)
constructor
Definition: GUIEvent.h:92
send when a message occured
Definition: GUIEvent.h:49
GUIEventType myType
the type of the event
Definition: GUIEvent.h:98
send when a error occured
Definition: GUIEvent.h:55
Send when a screenshot is requested; View and file name are stored within the event.
Definition: GUIEvent.h:66
GUIEventType
Definition: GUIEvent.h:41
Send when the simulation is over; The reason and the time step are stored within the event...
Definition: GUIEvent.h:62
send when a simulation has been loaded
Definition: GUIEvent.h:43
send when a warning occured
Definition: GUIEvent.h:52
End of events list; use this to define new.
Definition: GUIEvent.h:69
GUIEventType getOwnType() const
returns the event type
Definition: GUIEvent.h:83
send when a simulation step has been performed
Definition: GUIEvent.h:46
send when a status change occured
Definition: GUIEvent.h:58
virtual ~GUIEvent()
destructor
Definition: GUIEvent.h:88