oos::object_observer Class Referenceabstract
Base class for object observer classes. More...
#include <object_observer.hpp>
Inherited by oos::transaction.
Public Member Functions | |
virtual void | on_insert (object *o)=0 |
Called on object insertion. More... | |
virtual void | on_update (object *o)=0 |
Called on object update. More... | |
virtual void | on_delete (object *o)=0 |
Called on object deletion. More... | |
Detailed Description
Base class for object observer classes.
When interessted to observe insert, update and delete actions an observer class instance must be registered with object store. Use this class as base class for all observer classes.
Member Function Documentation
|
pure virtual |
Called on object deletion.
Called when an object is deleted from the object_store.
- Parameters
-
o The deleted object.
Implemented in oos::transaction.
|
pure virtual |
Called on object insertion.
Called when an object is inserted into the object_store.
- Parameters
-
o The inserted object.
Implemented in oos::transaction.
|
pure virtual |
Called on object update.
Called when an object is updated in the object_store.
- Parameters
-
o The updated object.
Implemented in oos::transaction.
The documentation for this class was generated from the following file:
- object/object_observer.hpp