cMsg Messaging System
5.2
|
This class provides a cMsg C callback method that dispatchs to a member function of another object, used internally. More...
#include <cMsgPrivate.hxx>
Public Member Functions | |
cMsgDispatcher (T *t, void(T::*mfp)(cMsgMessage *msg, void *userArg)) throw (cMsgException*) | |
Constructor stores object pointer and member function pointer. More... | |
void | callback (cMsgMessage *msg, void *userArg) throw (cMsgException) |
Callback method dispatches to member function. More... | |
This class provides a cMsg C callback method that dispatchs to a member function of another object, used internally.
This object extends cMsgCallback and thus has a callback method. It further stores a pointer to another object and to a member function of the object. That member function is invoked by the callback method of this object.
Definition at line 32 of file cMsgPrivate.hxx.
|
inline |
Constructor stores object pointer and member function pointer.
t | Object pointer |
mfp | Member function pointer |
Definition at line 45 of file cMsgPrivate.hxx.
|
inline |
Callback method dispatches to member function.
msg | Message. |
userArg | User arg. |
Definition at line 53 of file cMsgPrivate.hxx.