Rogue Wave Views
Studio Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Types | Public Member Functions
IlvStICallbackPrecondition Class Reference

Inspector class. More...

#include <ivstudio/inspectors/precond.h>

Inheritance diagram for IlvStICallbackPrecondition:
IlvStIPrecondition

Public Types

typedef IlBoolean(* PreconditionValueCallback) (IlvStIProperty *prop, IlAny data, IlvStIProperty **val, IlvStIPropertyAccessor::PropertyStatus *status)
 

Public Member Functions

 IlvStICallbackPrecondition (IlvStIPropertyAccessor *accessor=0, PreconditionValueCallback callback=0, IlAny data=0)
 Initializes a new instance of IlvStICallbackPrecondition. More...
 
virtual IlBoolean isAccessible (IlvStIProperty **=0, IlvStIPropertyAccessor::PropertyStatus *=0) const
 Returns IlTrue if the test succeeds. More...
 

Detailed Description

Inspector class.

Library: ivstudio

This class stores a precondition callback that is invoked from the method isAccessible(). It is used to avoid deriving the IlvStIPrecondition class when the implementation of the isAccessible() method can be easily contained in a callback of type PreconditionValueCallback.

See also
IlvStIPrecondition.

Member Typedef Documentation

IlvStICallbackPrecondition::PreconditionValueCallback

Defines the format of the callback provided as an argument to the constructor of the IlvStICallbackPrecondition class. The last two parameters are set by the callback if the test fails. They indicate the correct value to be used in place of the tested value and the access right to this value, respectively. Setting these values is optional.

Parameters
propThe property which contains the value to be tested.
dataThe user information, comes from the constructor.
valContains the correct property when the test fails.
statusContains the correct access right when the test fails.
Returns
IlTrue is the test succeeds and IlFalse otherwise.

Constructor & Destructor Documentation

IlvStICallbackPrecondition::IlvStICallbackPrecondition ( IlvStIPropertyAccessor accessor = 0,
PreconditionValueCallback  callback = 0,
IlAny  data = 0 
)

Initializes a new instance of IlvStICallbackPrecondition.

Parameters
accessorThe accessor which provides the value.
callbackThe callback which is called by the isAccessible() method.
dataThe user information.

Member Function Documentation

virtual IlBoolean IlvStICallbackPrecondition::isAccessible ( IlvStIProperty **  props = 0,
IlvStIPropertyAccessor::PropertyStatus status = 0 
) const
virtual

Returns IlTrue if the test succeeds.

The two parameters are set by the method if the test fails. They indicate the correct value to be used in place of the tested value and the access right to this value, respectively. Setting these values is optional.

Parameters
propsContains the correct property when the test fails.
statusContains the correct access right when the test fails.
Returns
IlTrue if the test succeeds and IlFalse otherwise.

Implements IlvStIPrecondition.


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