Superclass for the classes that are 'connected' to a Base. More...
#include <GloCallBack.h>
Public Member Functions | |
CallBack () | |
virtual | ~CallBack () |
virtual Base * | getBase () const |
virtual int | getTypeAsString (std::string &rsTypeName) |
virtual void | notify (NotifyNote &rNote) |
CallBack & | operator= (const CallBack &rT) |
virtual int | setBase (Base *pBase) |
bool | operator== (const CallBack &rT) const |
Comparison operator, all attributes are compared. | |
bool | operator!= (const CallBack &rT) const |
Comparison operator, all attributes are compared. | |
Public Attributes | |
std::string | m_strDebugInfo |
Protected Member Functions | |
CallBack (const CallBack &rT) | |
void | deinit () |
void | init () |
Private Attributes | |
CallBackSpy * | m_pSpy |
Superclass for the classes that are 'connected' to a Base.
All derived classes can be passed to the Base as objects to be notified for monitoring.
glo::CallBack::CallBack | ( | ) |
Standard constructor. The object enters itself into m_pSpy.
Referenced by CallBack(), operator!=(), operator=(), operator==(), glo::BasePersistent::setWatch(), glo::Reference::setWatch(), glo::BasePersistent::unsetWatch(), and glo::Reference::unsetWatch().
|
virtual |
Destructor, memory being cleared. The object is logged off in m_pSpy.
|
protected |
Copy constructor. The object enters itself into m_pSpy.
[in] | rT | The data is copied from this object. |
References CallBack().
|
protected |
The object is logged off in m_pSpy.
|
virtual |
Reimplemented in glo::BaseAllSet, glo::BaseLot, glo::BasePersistent, glo::OndemandLot, glo::PointerLot, and glo::Reference.
|
virtual |
Returns the type as string.
[in,out] | rsTypeName | the type. |
Reimplemented in glo::BaseAllSet, glo::BaseLot, glo::BasePersistent, glo::GenericPersistent, glo::Persistent, glo::Reference, glo::TOndemandList< T >, glo::TOndemandSet< T >, glo::TPointerList< T >, and glo::TPointerSet< T >.
|
protected |
The object enters itself into m_pSpy.
|
virtual |
This method is called by the database if this object should be notified.
[in] | rNote | The notification information. |
bool glo::CallBack::operator!= | ( | const CallBack & | rT | ) | const |
Comparison operator, all attributes are compared.
[in] | rT | The object to be compared with this one. |
References CallBack().
Assignment operator.
[in] | rT | The data is transferred from this object. |
References CallBack().
bool glo::CallBack::operator== | ( | const CallBack & | rT | ) | const |
Comparison operator, all attributes are compared.
[in] | rT | The object to be compared with this one. |
References CallBack().
|
virtual |
Sets a reference to the database in subclasses.
[in] | pBase | Pointer to the database. |
Reimplemented in glo::BaseAllSet, glo::BaseLot, glo::BasePersistent, glo::OndemandLot, glo::PointerLot, and glo::Reference.
|
private |
Necessary to find CallBack objects in memory. All objects of this class are automatically inserted respectively removed there automatically.
std::string glo::CallBack::m_strDebugInfo |
Referenced by glo::TAllSet< T >::TAllSet(), glo::TAllSet< T >::TAllSet(), glo::TAllSet< T >::TAllSet(), glo::TAllSet< T >::TAllSet(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemand< T >::TOndemand(), glo::TOndemandList< T >::TOndemandList(), glo::TOndemandList< T >::TOndemandList(), glo::TOndemandSet< T >::TOndemandSet(), glo::TOndemandSet< T >::TOndemandSet(), glo::TPointerList< T >::TPointerList(), glo::TPointerList< T >::TPointerList(), glo::TPointerSet< T >::TPointerSet(), and glo::TPointerSet< T >::TPointerSet().