Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Friends
IlvManagerObserver Class Reference

Manager observer class. More...

#include <ilviews/manager/observer.h>

Inheritance diagram for IlvManagerObserver:
IlvObserver

Public Member Functions

 IlvManagerObserver (IlvManager *manager, IlUInt interestMask=0xFFFFFFFF)
 Constructor. More...
 
IlUInt getInterestMask () const
 Returns the interest mask. More...
 
void setInterestMask (IlUInt mask)
 Sets the interest mask. More...
 

Friends

class IlvManagerObservable
 

Detailed Description

Manager observer class.

Library: ilvmgr

This abstract class provides the infrastructure to receive notifications from an IlvManager instance. Subclasses must redefine the virtual member function IlvObserver::update where they can react to notifications sent by the manager.
During the notification, the only argument passed to IlvObserver::update is a pointer to a subclass of IlvManagerMessage. The IlvManagerMessage::_reason data member indicates the type of notification and which subclass the manager message belongs to.
A manager observer has an interest mask which is a bitwise OR combination of manager message categories. Each message category groups one or several message type (or reason). The interest mask determines the type of messages that the manager will sent to the observer and the ones that will be discarded.

See also
IlvManager, IlvManagerObservable, IlvManagerMessage.

Constructor & Destructor Documentation

§ IlvManagerObserver()

IlvManagerObserver::IlvManagerObserver ( IlvManager manager,
IlUInt  interestMask = 0xFFFFFFFF 
)

Constructor.

Parameters
managerIndicates manager to observe. The observer is automatically attached to the the manager observable.
interestMaskSpecifies the bitwise OR combination of message categories for which notification is requested.

Member Function Documentation

§ getInterestMask()

IlUInt IlvManagerObserver::getInterestMask ( ) const

Returns the interest mask.

Returns
The interest mask of the observer.

§ setInterestMask()

void IlvManagerObserver::setInterestMask ( IlUInt  mask)

Sets the interest mask.

Parameters
maskSpecifies the new interest mask with a bitwise OR combination of manager message categories.

© Copyright 2017, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.