### 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.

~IObserverForConnectionTo

      public:
      virtual ~IObserverForConnectionTo()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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.

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

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

  -     virtual ~IObserver()

  -     virtual IObserver& handleNotificationsFor(IInterest&)

  -     virtual IObserver&
          handleNotificationsFor( INotifier&,
                                  const INotificationId& id )

  -     virtual IObserver&
          handleNotificationsFor( INotifier& notifier,
                                  const IEventData& userData = IEventData ( ) )

  -     INotificationProcessor* requestProcessor()

  -     virtual IObserver&
          stopHandlingNotificationsFor( const IInterest& )

  -     virtual IObserver&
          stopHandlingNotificationsFor( INotifier&,
                                        const INotificationId& id )

  -     virtual IObserver&
          stopHandlingNotificationsFor( INotifier& notifier )

  -     const IThreadId& threadId() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  IObserver

  -     virtual IObserver&
          dispatchNotificationEvent( const INotificationEvent& event ) = 0

  -     IObserver()

#### Inherited Protected Data

  - None