rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvLoopbackAccessor Class Reference

Watch attribute behavior. More...

#include <ilviews/protos/connacc.h>

Inheritance diagram for IlvLoopbackAccessor:
IlvUserAccessor IlvAccessor IlvExportOutputAccessor

List of all members.

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.

Detailed Description

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

See also:
IlvOutputAccessor, IlvCallbackAccessor, IlvEventAccessor, IlvExportOutputAccessor.

Constructor & Destructor Documentation

IlvLoopbackAccessor::IlvLoopbackAccessor ( const char *  name,
const IlvValueTypeClass type,
const char *  outacc 
)

Creates a watching behavior.

Parameters:
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.

Member Function Documentation

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.

Parameters:
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.