GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloCallBackSpy.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCALLBACKSPY_H
2#define INC_GLOCALLBACKSPY_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "GloTypes.h"
38#include "GloCallBack.h"
39#include <unordered_map>
40#if defined (__PTHREADS)
41 #include <EuPCriticalSection.h>
42#else
43 #include "EuCriticalSection.h"
44#endif
45//-----------------------------------------------------------------------------
46namespace glo
47{
48 //-----------------------------------------------------------------------------
49 #ifdef _MSC_VER
50 /*'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
51 #pragma warning( disable : 4251 )
52 #endif
53 //---------------------------------------------------------------------------
75 {
76 private:
77 //============== Friends
78 //-----------------------------------------------------------------------
79 friend class CallBack;
80 //-----------------------------------------------------------------------
81
82 //============== Attribute
83 //-----------------------------------------------------------------------
95 #if defined (__PTHREADS)
96 EuPCriticalSection m_CallBackListCriticalSection;
97 #else
99 #endif
100 //-----------------------------------------------------------------------
112 std::unordered_map< NUM_PTR, CallBack * > m_List;
113 //-----------------------------------------------------------------------
123 std::unordered_map< NUM_PTR, CallBack * >::iterator m_ListIterator;
124 //-----------------------------------------------------------------------
125
126 protected:
127 //========== static Attribute =========
128 //-----------------------------------------------------------------------
139 //-----------------------------------------------------------------------
150 //-----------------------------------------------------------------------
151
152 //============== Konstruktoren
153 //-----------------------------------------------------------------------
166 //-----------------------------------------------------------------------
178 virtual ~CallBackSpy ();
179 //-----------------------------------------------------------------------
180
181 private:
182 //============== Konstruktoren
183 //-----------------------------------------------------------------------
194 //-----------------------------------------------------------------------
195
196 public:
197 //========== static Methoden =========
198 //-----------------------------------------------------------------------
217 static void create( CallBackSpy *& prInstance );
218 //-----------------------------------------------------------------------
232 static int destroy();
233 //-----------------------------------------------------------------------
234
235 public:
236 //============== Methoden
237 //-----------------------------------------------------------------------
274 //-----------------------------------------------------------------------
297 //-----------------------------------------------------------------------
298
299 protected:
300 //============== Methoden
301 //-----------------------------------------------------------------------
314 int insertCallBack( const CallBack * pCallBack );
315 //-----------------------------------------------------------------------
328 int removeCallBack( const CallBack * pCallBack );
329 //-----------------------------------------------------------------------
330
331 private:
332 //============== Operatoren
333 //-----------------------------------------------------------------------
343 CallBackSpy & operator= ( const CallBackSpy & );
344 //-----------------------------------------------------------------------
345 };
346 //---------------------------------------------------------------------------
347 #ifdef _MSC_VER
348 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
349 #pragma warning( default : 4251 )
350 #endif
351 //---------------------------------------------------------------------------
352} // namespace glo
353#endif
Header für CriticalSection
long long NUM_PTR
Definition EuDef_NULL_PTR.h:93
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:63
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuPCriticalSection.h:89
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuCriticalSection.h:94
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:74
Klasse um die CallBack-Objekte im Speicher im Zugriff zu haben.
Definition GloCallBackSpy.h:75
std::unordered_map< NUM_PTR, CallBack * >::iterator m_ListIterator
Definition GloCallBackSpy.h:123
virtual ~CallBackSpy()
static int ms_iReferenceCounter
Definition GloCallBackSpy.h:149
CallBackSpy(const CallBackSpy &)
static void create(CallBackSpy *&prInstance)
static int destroy()
eut::CriticalSection m_CallBackListCriticalSection
Definition GloCallBackSpy.h:98
static CallBackSpy * ms_pInstance
Definition GloCallBackSpy.h:138
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:112
CallBack * getCallBack(NUM_PTR ipAddress)
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166