rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Studio Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvStIPreconditionValue Class Reference

Inspector class. More...

#include <ivstudio/inspectors/precond.h>

Inheritance diagram for IlvStIPreconditionValue:
IlvStIPrecondition

List of all members.

Public Member Functions

 IlvStIPreconditionValue (IlvStIPropertyAccessor *accessor, const IlvStValue &valueToCompare, const IlvStValue &defaultValue)
 Initializes an instance of IlvStIPreconditionValue.
virtual IlBoolean isAccessible (IlvStIProperty **=0, IlvStIPropertyAccessor::PropertyStatus *=0) const
 Returns IlTrue if the test succeeds.

Detailed Description

Inspector class.

Library: ivstudio

This class compares the value returned by an accessor with a user value.

See also:
IlvStIPrecondition.

Constructor & Destructor Documentation

IlvStIPreconditionValue::IlvStIPreconditionValue ( IlvStIPropertyAccessor accessor,
const IlvStValue valueToCompare,
const IlvStValue defaultValue 
)

Initializes an instance of IlvStIPreconditionValue.

Parameters:
accessor The accessor which provides the value.
valueToCompare The user value.
defaultValue The default value, If the test fails, this value will be used in place of the tested value.

Member Function Documentation

virtual IlBoolean IlvStIPreconditionValue::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:
props Contains the correct property when the test fails.
status Contains the correct access right when the test fails.
Returns:
IlTrue if the test succeeds and IlFalse otherwise.

Implements IlvStIPrecondition.

 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.