18 #ifndef _cMsgPrivate_hxx
19 #define _cMsgPrivate_hxx
36 void (T::*mfp)(cMsgMessage *msg,
void* userArg);
45 cMsgDispatcher(T *t,
void (T::*mfp)(cMsgMessage *msg,
void* userArg))
throw(cMsgException*) : t(t), mfp(mfp) {}
53 void callback(cMsgMessage *msg,
void* userArg)
throw(cMsgException) {
54 (t->*mfp)(msg,userArg);
cMsgDispatcher(T *t, void(T::*mfp)(cMsgMessage *msg, void *userArg))
Constructor stores object pointer and member function pointer.
void callback(cMsgMessage *msg, void *userArg)
Callback method dispatches to member function.
This class provides a cMsg C callback method that dispatchs to a member function of another object...