A derived class of the notifier connection that distributes the notifications to the receiver object by calling a member function on the receiver object. It is templatized by receiver type so as to be type safe.
An individual receiver member function can be specified for each different interest. A default member function can be specified to be called when an interest does not have a specific member function to call.
There may be many different notification threads, so a receiver object that uses this templatized member function connection must be written to be multithread safe. See also TRequestBasedMemberFunctionConnectionTo.
Creates a new member function connection with no default notification member function pointer.
Creates a new member function with the specified member function to be used as the default notification handler.
Creates a new member function with the specified member function to be used as the default notification handler and the interest to be added as the initial interest.
Default constructor.
There may be many different notification threads, so a receiver object that uses this templatized member function connection must be written to be multithread safe. See also TRequestBasedMemberFunctionConnectionTo.
Calling Context:
Call this function directly.
Call this function directly.
Call this function directly.
Called by the stream-in operators and directly.
Parameters:
AReceiver * theReceiver -The object to receive the notifications.
AReceiver * theReceiver -The object to receive the notifications.
MemberFunction defaultFunction -The member function of the object that will be called to handle notifications on interests that do not have their own specified member function.
AReceiver * theReceiver -The object to receive the notifications.
MemberFunction defaultFunction -The member function of the object that will be called to handle notifications on interests that do not have their own specified member function.
Gets the member function that will be invoked on the receiver to handle a notification associated with an interest that does not have its own special notification handler member function.
Calling Context:
Call this function directly.
Parameters:
Takes no parameters.
Return Value:
Returns the default notification handler member function.
Exceptions:
Throws no exceptions, passes all exceptions through.
Adds an interest for a notification. A new interest is added by a client of a notifier to express the desire to receive notifications that are generated and that are associated with this interest. If the connection is already connected to the notifier, then the receiver will immediately begin to receive the notifications associated with this interest. The default notification handler member function of the object will be called for notifications associated with this interest.
Adds an interest for a notification. A new interest is added by a client of a notifier to express the desire to receive notifications that are generated and that are associated with this interest. If the connection is already connected to the notifier, then the receiver will immediately begin to receive the notifications associated with this interest. The specified member function will be invoked against the object when notifications associated with this interest arrive.
Calling Context:
Call this function directly.
Call this function directly.
Parameters:
const TInterest & -The interest specifying which notifications to receive.
const TInterest & -The interest specifying which notifications to receive.
MemberFunction -The notification handler member function for notifications associated with this interest.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Adopts an existing interest into the connection's own collection of interests. A new interest is added by a client of a notifier to express the desire to receive notifications that are generated and that are associated with this interest. If the connection is already connected to the notifier, then the receiver will immediately begin to receive the notifications associated with this interest. The default notification handler member function of the object will be called for notifications associated with this interest.
2.Adopts an existing interest into the connection's own collection of interests. A new interest is added by a client of a notifier to express the desire to receive notifications that are generated and that are associated with this interest. If the connection is already connected to the notifier, then the receiver will immediately begin to receive the notifications associated with this interest. The specified member function will be invoked against the object when notifications associated with this interest arrive.
Calling Context:
Call this function directly.
Call this function directly.
Parameters:
TInterest * -The interest specifying which notifications to receive.
TInterest * -The interest specifying which notifications to receive.
MemberFunction -The notification handler member function for notifications associated with this interest.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.