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-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef FXThreadEvent_h
00020 #define FXThreadEvent_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include "fxexdefs.h"
00033 
00034 #ifndef FXBASEOBJECT_H
00035 #include "FXBaseObject.h"
00036 #endif
00037 namespace FXEX {
00038 
00110 class /*FXAPI */FXThreadEvent : public FXBaseObject {
00111     FXDECLARE(FXThreadEvent)
00112 
00113 private:
00114     FXThreadEventHandle event;
00115 
00116 protected:
00117     FXThreadEvent(const FXThreadEvent&);
00118     FXThreadEvent& operator=(const FXThreadEvent&);
00119 
00120 public:
00121     enum {
00122         ID_THREAD_EVENT=FXBaseObject::ID_LAST,
00123         ID_LAST
00124     };
00125 
00126 public:
00127     long onThreadSignal(FXObject*,FXSelector,void*);
00128     long onThreadEvent(FXObject*,FXSelector,void*);
00129 
00130 public:
00132     FXThreadEvent(FXObject* tgt=NULL,FXSelector sel=0);
00133 
00140     void signal();
00141 
00148     void signal(FXuint seltype);
00149 
00151     virtual ~FXThreadEvent();
00152 };
00153 
00154 } // namespace FXEX
00155 
00156 
00157 #endif
00158 
00159 /****************************************************************************/
00160 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines