rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvManagerMessage Class Reference

Manager message class. More...

#include <ilviews/manager/observer.h>

Inheritance diagram for IlvManagerMessage:
IlvManagerLayerMessage IlvManagerObjectMessage IlvManagerViewMessage IlvManagerLayerAlphaMessage IlvManagerLayerAntialiasingMessage IlvManagerLayerNameMessage IlvManagerLayerVisibilityMessage IlvManagerMoveLayerMessage IlvManagerSwapLayerMessage IlvManagerContentsMessage IlvManagerObjectGeometryMessage IlvManagerAddViewMessage IlvManagerRemoveViewMessage IlvManagerSetInteractorMessage IlvManagerSetTransformerMessage

List of all members.

Public Member Functions

 IlvManagerMessage (IlUInt reason, IlUInt mask, IlAny data=0)
 Constructor.

Public Attributes

IlAny _data
 Additional message information.
IlUInt _mask
 Message mask (or message category).
IlUInt _reason
 Message type.

Detailed Description

Manager message class.

Library: ilvmgr

This class provides information and data used in the notification mechanism in the IlvManager class. When a notification needs to be made, the manager creates an instance of an IlvManagerMessage subclass and calls IlvManagerObservable::notify, which propagates the notification to the list of observers attached to the manager. The propagation is done by calling IlvManagerObserver::update with the manager message as argument. The message contains the notification category and type. The category is also called message mask and the notification type is also called reason. The manager message also contains an anonymous data field that points to additional information. This field has a different use and logic depending on the type of notification.
For instance, in a call to IlvManager::addView, the manager creates an IlvManagerAddViewMessage as follows

See also:
IlvManagerObservable, IlvManagerObserver.

Constructor & Destructor Documentation

IlvManagerMessage::IlvManagerMessage ( IlUInt  reason,
IlUInt  mask,
IlAny  data = 0 
)

Constructor.

Parameters:
reason The notification type.
mask The notification category.
data Additional data. The use of this field depends on the notification type.

Member Data Documentation

Additional message information.

This field is meant for subclasses to store any specific information needed for the given type of notification message.

Message mask (or message category).

Contains a bitmask value identifying the message category. Each message type value can only belong to one message category.

Message type.

Contains a value identifying the type of notification.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, 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.