GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloCallBackSpy.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCALLBACKSPY_H
2#define INC_GLOCALLBACKSPY_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "GloTypes.h"
45#include "GloCallBack.h"
46#include <unordered_map>
47#if defined (__PTHREADS)
48 #include <EuPCriticalSection.h>
49#else
50 #include "EuCriticalSection.h"
51#endif
52//-----------------------------------------------------------------------------
53namespace glo
54{
55 //-----------------------------------------------------------------------------
56 #ifdef _MSC_VER
57 /*'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
58 #pragma warning( disable : 4251 )
59 #endif
60 //---------------------------------------------------------------------------
82 {
83 private:
84 //============== Friends
85 //-----------------------------------------------------------------------
86 friend class CallBack;
87 //-----------------------------------------------------------------------
88
89 //============== Attribute
90 //-----------------------------------------------------------------------
102 #if defined (__PTHREADS)
103 EuPCriticalSection m_CallBackListCriticalSection;
104 #else
106 #endif
107 //-----------------------------------------------------------------------
119 std::unordered_map< NUM_PTR, CallBack * > m_List;
120 //-----------------------------------------------------------------------
130 std::unordered_map< NUM_PTR, CallBack * >::iterator m_ListIterator;
131 //-----------------------------------------------------------------------
132
133 protected:
134 //========== static Attribute =========
135 //-----------------------------------------------------------------------
146 //-----------------------------------------------------------------------
157 //-----------------------------------------------------------------------
158
159 //============== Konstruktoren
160 //-----------------------------------------------------------------------
173 //-----------------------------------------------------------------------
185 virtual ~CallBackSpy ();
186 //-----------------------------------------------------------------------
187
188 private:
189 //============== Konstruktoren
190 //-----------------------------------------------------------------------
201 //-----------------------------------------------------------------------
202
203 public:
204 //========== static Methoden =========
205 //-----------------------------------------------------------------------
224 static void create( CallBackSpy *& prInstance );
225 //-----------------------------------------------------------------------
239 static int destroy();
240 //-----------------------------------------------------------------------
241
242 public:
243 //============== Methoden
244 //-----------------------------------------------------------------------
281 //-----------------------------------------------------------------------
303 CallBack * getCallBack( NUM_PTR ipAddress );
304 //-----------------------------------------------------------------------
305
306 protected:
307 //============== Methoden
308 //-----------------------------------------------------------------------
321 int insertCallBack( const CallBack * pCallBack );
322 //-----------------------------------------------------------------------
335 int removeCallBack( const CallBack * pCallBack );
336 //-----------------------------------------------------------------------
337
338 private:
339 //============== Operatoren
340 //-----------------------------------------------------------------------
350 CallBackSpy & operator= ( const CallBackSpy & );
351 //-----------------------------------------------------------------------
352 };
353 //---------------------------------------------------------------------------
354 #ifdef _MSC_VER
355 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
356 #pragma warning( default : 4251 )
357 #endif
358 //---------------------------------------------------------------------------
359} // namespace glo
360#endif
Header für CriticalSection
Header für EuPCriticalSection
Header für CallBack
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:70
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuPCriticalSection.h:104
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuCriticalSection.h:109
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:81
Klasse um die CallBack-Objekte im Speicher im Zugriff zu haben.
Definition GloCallBackSpy.h:82
std::unordered_map< NUM_PTR, CallBack * >::iterator m_ListIterator
Definition GloCallBackSpy.h:130
virtual ~CallBackSpy()
static int ms_iReferenceCounter
Definition GloCallBackSpy.h:156
CallBackSpy(const CallBackSpy &)
static void create(CallBackSpy *&prInstance)
static int destroy()
eut::CriticalSection m_CallBackListCriticalSection
Definition GloCallBackSpy.h:105
static CallBackSpy * ms_pInstance
Definition GloCallBackSpy.h:145
int insertCallBack(const CallBack *pCallBack)
CallBack * getCallBack(EnSeekMode eMode)
int removeCallBack(const CallBack *pCallBack)
std::unordered_map< NUM_PTR, CallBack * > m_List
Definition GloCallBackSpy.h:119
CallBack * getCallBack(NUM_PTR ipAddress)
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:173