SUMO - Simulation of Urban MObility
GUIEvent.h
Go to the documentation of this file.
00001 /****************************************************************************/
00007 // Definition of an own event class
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This file is part of SUMO.
00014 //   SUMO is free software: you can redistribute it and/or modify
00015 //   it under the terms of the GNU General Public License as published by
00016 //   the Free Software Foundation, either version 3 of the License, or
00017 //   (at your option) any later version.
00018 //
00019 /****************************************************************************/
00020 #ifndef GUIEvent_h
00021 #define GUIEvent_h
00022 
00023 
00024 // ===========================================================================
00025 // included modules
00026 // ===========================================================================
00027 #ifdef _MSC_VER
00028 #include <windows_config.h>
00029 #else
00030 #include <config.h>
00031 #endif
00032 
00033 #include <utils/foxtools/FXThreadEvent.h>
00034 #include <utils/foxtools/FXBaseObject.h>
00035 #include <fx.h>
00036 
00037 
00042 enum GUIEventType {
00044     EVENT_SIMULATION_LOADED,
00045 
00047     EVENT_SIMULATION_STEP,
00048 
00050     EVENT_MESSAGE_OCCURED,
00051 
00053     EVENT_WARNING_OCCURED,
00054 
00056     EVENT_ERROR_OCCURED,
00057 
00060     EVENT_SIMULATION_ENDED,
00061 
00063     EVENT_END
00064 };
00065 
00066 
00067 // ===========================================================================
00068 // class definitions
00069 // ===========================================================================
00074 class GUIEvent {
00075 public:
00077     GUIEventType getOwnType() const {
00078         return myType;
00079     }
00080 
00082     virtual ~GUIEvent() { }
00083 
00084 protected:
00086     GUIEvent(GUIEventType ownType)
00087         : myType(ownType) { }
00088 
00089 
00090 protected:
00092     GUIEventType myType;
00093 
00094 };
00095 
00096 
00097 #endif
00098 
00099 /****************************************************************************/
00100 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines