Handle class for database callbacks, encapsulating a reference-counted pointer to the RWDBDatabaseCallbackImp body class.
More...
#include <rw/db/dbasecb.h>
RWDBDatabaseCallback is the interface handle class for database callbacks that encapsulate a reference-counted pointer to the RWDBDatabaseCallbackImp body class. Please refer to the RWDBDatabaseCallbackImp class for implementing database callbacks.
- Synopsis
#include <rw/db/dbasecb.h>
"Username", "Password",
"DatabaseName",
RWDBDatabaseCallback::RWDBDatabaseCallback |
( |
| ) |
|
|
inline |
Copy constructor. The object created shares an implementation with dbasecb.
Returns a pointer to the database callback implementation encapsulated by self.
Assignment operator. Self shares an implementation with dbasecb. Returns a reference to self.
Returns the current status of self.
#define RWDBDATABASECALLBACK |
( |
|
CALLBACK | ) |
|
|
related |
The macro takes as argument the name of the user-implemented database callback implementation class. The user database callback implementation class must have been derived from the RWDBDatabaseCallbackImp class. Providing simply the name of the callback implementation class creates its instance using its default constructor. To use a different constructor, pass the class and parameter values. For example:
This macro must be used while supplying an instance of database callback implementation class in the method RWDBManager::database(). This macro ensures that a new instance of the database callback implementation class is produced.