BankAndCustomer
Lade ...
Suche ...
Keine Treffer
GloCallBack.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCALLBACK_H
2#define INC_GLOCALLBACK_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "GloTypes.h"
45#include "GloNotifyNote.h"
46#include <memory>
47//-----------------------------------------------------------------------------
48#ifdef _MSC_VER
49 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
50 #pragma warning( disable : 4251 )
51#endif
52//-----------------------------------------------------------------------------
53namespace glo
54{
55 //---------------------------------------------------------------------------
56 /* Forwards */
57 class CallBackSpy;
58 class Base;
59 //---------------------------------------------------------------------------
80 class __glo_export_dll CallBack
81 {
82 private:
83 //============== Attribute ============
84 //-----------------------------------------------------------------------
96 CallBackSpy * m_pSpy;
97 //-----------------------------------------------------------------------
98
99 public:
100 //-----------------------------------------------------------------------
101 /*
102 \if english
103 Here you can write something in for DEBUG purposes.
104 \endif
105
106 \if german
107 Hier kann für DEBUG-Zwecke etwas reingeschrieben werden.
108 \endif
109 */
110 #ifdef _DEBUG
111 std::string m_strDebugInfo;
112 #endif
113 //-----------------------------------------------------------------------
114
115 public:
116 //============= Konstruktoren
117 //-----------------------------------------------------------------------
128 //-----------------------------------------------------------------------
138 virtual ~CallBack();
139 //-----------------------------------------------------------------------
140
141 protected:
142 //============== Konstruktoren
143 //-----------------------------------------------------------------------
155 CallBack( const CallBack & rT );
156 //-----------------------------------------------------------------------
157
158 //============== Methoden
159 //-----------------------------------------------------------------------
169 void init();
170 //-----------------------------------------------------------------------
180 void deinit();
181 //-----------------------------------------------------------------------
182
183 public:
184 //============== Methoden
185 //-----------------------------------------------------------------------
206 virtual int setBase( Base * pBase );
207 //-----------------------------------------------------------------------
222 virtual Base * getBase() const;
223 //-----------------------------------------------------------------------
245 virtual void notify( NotifyNote & rNote );
246 //-----------------------------------------------------------------------
260 virtual int getTypeAsString( std::string & rsTypeName );
261 //-----------------------------------------------------------------------
262
263 //============== Operatoren
264 //-----------------------------------------------------------------------
276 CallBack & operator= ( const CallBack & rT );
277 //-----------------------------------------------------------------------
279
290 bool operator== ( const CallBack & rT ) const;
291 bool operator!= ( const CallBack & rT ) const;
293 //-----------------------------------------------------------------------
294 };
295} // namespace glo
296//-----------------------------------------------------------------------------
297#ifdef _MSC_VER
298 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
299 #pragma warning( default : 4251 )
300#endif
301//-----------------------------------------------------------------------------
302#endif
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:81
virtual int getTypeAsString(std::string &rsTypeName)
std::string m_strDebugInfo
Definition GloCallBack.h:111
virtual int setBase(Base *pBase)
virtual void notify(NotifyNote &rNote)
virtual Base * getBase() const
CallBack(const CallBack &rT)
CallBackSpy * m_pSpy
Definition GloCallBack.h:96
virtual ~CallBack()
Definition GloBasePersistent.h:60