libIntegra
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
integra_api::IStateInfo Class Referenceabstract

Stateful-control-specific info about an Endpoint in an Integra Module interface. More...

#include "api/interface_definition.h"

Public Member Functions

virtual CValue::type get_type () const =0
 
virtual const IConstraintget_constraint () const =0
 
virtual const CValueget_default_value () const =0
 
virtual const IValueScaleget_value_scale () const =0
 
virtual const value_map & get_state_labels () const =0
 Get the state labels. More...
 
virtual bool test_constraint (const CValue &value) const =0
 Test whether a value adheres to constraint. More...
 

Detailed Description

Stateful-control-specific info about an Endpoint in an Integra Module interface.

Member Function Documentation

virtual const IConstraint& integra_api::IStateInfo::get_constraint ( ) const
pure virtual

get the constraint. Defines which values are allowed

virtual const CValue& integra_api::IStateInfo::get_default_value ( ) const
pure virtual

get the default value

virtual const value_map& integra_api::IStateInfo::get_state_labels ( ) const
pure virtual

Get the state labels.

State labels are a set of 'special' values with strings assigned to them They could be used to provide specially labelled widgets. For instance, a pan control might want to define the labels { -1:'L', 0:'C', 1:'R' }

virtual CValue::type integra_api::IStateInfo::get_type ( ) const
pure virtual

get type of value used to represent the endpoint's state

virtual const IValueScale* integra_api::IStateInfo::get_value_scale ( ) const
pure virtual

how should the value be scaled?

virtual bool integra_api::IStateInfo::test_constraint ( const CValue value) const
pure virtual

Test whether a value adheres to constraint.

Parameters
valuevalue to test
Returns
true if value's type matches type of this state, and value adheres to constraint

The documentation for this class was generated from the following file: