SUMO - Simulation of Urban MObility
FXThreadEvent.h
Go to the documentation of this file.
00001 /****************************************************************************/
00007 //
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 FXThreadEvent_h
00021 #define FXThreadEvent_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 "fxexdefs.h"
00034 
00035 #ifndef FXBASEOBJECT_H
00036 #include "FXBaseObject.h"
00037 #endif
00038 namespace FXEX {
00039 
00111 class /*FXAPI */FXThreadEvent : public FXBaseObject {
00112     FXDECLARE(FXThreadEvent)
00113 
00114 private:
00115     FXThreadEventHandle event;
00116 
00117 protected:
00118     FXThreadEvent(const FXThreadEvent&);
00119     FXThreadEvent& operator=(const FXThreadEvent&);
00120 
00121 public:
00122     enum {
00123         ID_THREAD_EVENT = FXBaseObject::ID_LAST,
00124         ID_LAST
00125     };
00126 
00127 public:
00128     long onThreadSignal(FXObject*, FXSelector, void*);
00129     long onThreadEvent(FXObject*, FXSelector, void*);
00130 
00131 public:
00133     FXThreadEvent(FXObject* tgt = NULL, FXSelector sel = 0);
00134 
00141     void signal();
00142 
00149     void signal(FXuint seltype);
00150 
00152     virtual ~FXThreadEvent();
00153 };
00154 
00155 } // namespace FXEX
00156 
00157 
00158 #endif
00159 
00160 /****************************************************************************/
00161 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines