IObserverForConnectionTo

IObserverForConnectionTo is used to wire notifications with event data from a notifier to a target member function. This connection is activated by registering with an IInterest reference, typically published by a notifier.


IObserverForConnectionTo - Member Functions and Data by Group

Constructors & Destructor

You can construct, destruct but not assign or copy objects of this class.


[view class]
~IObserverForConnectionTo
public:
virtual ~IObserverForConnectionTo()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IObserverForConnectionTo
public:
IObserverForConnectionTo( ATarget& target, MemberFunction memberFunction )
Constructor which takes a target object and member function to receive notifications. The member function is passed an INotificationEventFor object which contains the event data.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Event Dispatching

Use these members to evaluate events and determine if it is appropriate for an observer object to process them.


[view class]
dispatchNotificationEvent
protected:
virtual IObserverForConnectionTo < AType , ATarget >& dispatchNotificationEvent( const INotificationEvent& event )
Dispatches the notification event to the target member function.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IObserverForConnectionTo - Type Definitions


[view class]
MemberFunction
typedef void (ATarget::*MemberFunction)(constINotificationEventFor&event)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IObserverForConnectionTo - Inherited Member Functions and Data

Inherited Public Functions

IObserver

Inherited Public Data

Inherited Protected Functions

IObserver

Inherited Protected Data