Superclass for the classes that are 'connected' to a Base.
More...
#include <GloCallBack.h>
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.
- See also
- notify( NotifyNote & rNote ) and WatchNotifyManager
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
◆ CallBack() [1/2]
glo::CallBack::CallBack |
( |
| ) |
|
Standard constructor. The object enters itself into m_pSpy.
◆ ~CallBack()
virtual glo::CallBack::~CallBack |
( |
| ) |
|
|
virtual |
Destructor, memory being cleared. The object is logged off in m_pSpy.
◆ CallBack() [2/2]
glo::CallBack::CallBack |
( |
const CallBack & | rT | ) |
|
|
protected |
Copy constructor. The object enters itself into m_pSpy.
- Parameters
-
[in] | rT | The data is copied from this object. |
◆ deinit()
void glo::CallBack::deinit |
( |
| ) |
|
|
protected |
The object is logged off in m_pSpy.
◆ getBase()
virtual Base * glo::CallBack::getBase |
( |
| ) |
const |
|
virtual |
◆ getTypeAsString()
virtual int glo::CallBack::getTypeAsString |
( |
std::string & | rsTypeName | ) |
|
|
virtual |
Returns the type as string.
- Parameters
-
[in,out] | rsTypeName | the type. |
- Returns
- A return value < 0 indicates an error.
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 >.
◆ init()
void glo::CallBack::init |
( |
| ) |
|
|
protected |
The object enters itself into m_pSpy.
◆ notify()
virtual void glo::CallBack::notify |
( |
NotifyNote & | rNote | ) |
|
|
virtual |
This method is called by the database if this object should be notified.
- Parameters
-
[in] | rNote | The notification information. |
- Note
- Here without function, can be overwritten in subclasses.
- Attention
- If this method is overridden, it MAY NOT, even indirectl, initiate the storing of an object! No error is delivered, but the notifys are not forwarded anymore.
- See also
- WatchNotifyManager
◆ operator!=()
bool glo::CallBack::operator!= |
( |
const CallBack & | rT | ) |
const |
Comparison operator, all attributes are compared.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator=()
Assignment operator.
- Parameters
-
[in] | rT | The data is transferred from this object. |
◆ operator==()
bool glo::CallBack::operator== |
( |
const CallBack & | rT | ) |
const |
Comparison operator, all attributes are compared.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ setBase()
virtual int glo::CallBack::setBase |
( |
Base * | pBase | ) |
|
|
virtual |
◆ m_pSpy
Necessary to find CallBack objects in memory. All objects of this class are automatically inserted respectively removed there automatically.
◆ m_strDebugInfo
std::string glo::CallBack::m_strDebugInfo |
The documentation for this class was generated from the following file: