Rogue Wave Views Manager Package API Reference Guide |
Rogue Wave Views Documentation Home |
Manager observer class. More...
#include <ilviews/manager/observer.h>
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 |
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.
IlvManager
, IlvManagerObservable
, IlvManagerMessage
. IlvManagerObserver::IlvManagerObserver | ( | IlvManager * | manager, |
IlUInt | interestMask = 0xFFFFFFFF |
||
) |
Constructor.
manager | Indicates manager to observe. The observer is automatically attached to the the manager observable. |
interestMask | Specifies the bitwise OR combination of message categories for which notification is requested. |
IlUInt IlvManagerObserver::getInterestMask | ( | ) | const |
Returns the interest mask.
void IlvManagerObserver::setInterestMask | ( | IlUInt | mask | ) |
Sets the interest mask.
mask | Specifies the new interest mask with a bitwise OR combination of manager message categories. |
© Copyright 2016, 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.