Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Watch attribute behavior. More...
#include <ilviews/protos/connacc.h>
Public Member Functions | |
IlvLoopbackAccessor (const char *name, const IlvValueTypeClass *type, const char *outacc) | |
Creates a watching behavior. | |
Protected Member Functions | |
virtual void | initialize (const IlvAccessorHolder *object) |
Attachment method to an IlvAccessorHolder . |
Watch attribute behavior.
Library: ilvproto
This accessor class attaches a subscription to an observed attribute (also called output value). The attribute to which this behavior is attached will automatically be set to the value of the watched attribute when this watched attribute is modified. It is equivalent to an internal value subscription. The observed attribute must be capable of notification, that is, it must have a behavior of type 'Event', 'Callback', or 'Output'.
IlvLoopbackAccessor::IlvLoopbackAccessor | ( | const char * | name, | |
const IlvValueTypeClass * | type, | |||
const char * | outacc | |||
) |
Creates a watching behavior.
name | Name of the attribute to attach the behavior to. | |
type | Type of the behavior, needed only for initialization. | |
outacc | Name of the notifying attribute (also called output value) that the accessor will watch. Whenever this notifying attribute is changed, the loopback accessor value is changed to the new value of the notifying attribute. This parameter should correspond to an attribute that has an attached 'notifying behavior' so that notification can occur. |
virtual void IlvLoopbackAccessor::initialize | ( | const IlvAccessorHolder * | object | ) | [protected, virtual] |
Attachment method to an IlvAccessorHolder
.
This method is called when the accessor object is attached to a group. You can redefine it in subclasses of IlvUserAccessor
to perform any kind of initialization.
object | The object the accessor is attached to. |
Reimplemented from IlvUserAccessor.
© 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.