Skip to main content
Part of Data Represents a type of value and a set of properties. ValueType is intended to be associated with a set of floating point data values. It stores information (the value type and named value attributes) about data values. It provides conversion routines between its associated floating point data values and value type.

Public Types

Public Member Functions

Detailed Description

Represents a type of value and a set of properties. ValueType is intended to be associated with a set of floating point data values. It stores information (the value type and named value attributes) about data values. It provides conversion routines between its associated floating point data values and value type. See also ValueTypeManager for Script example usage.
Constructor is private. Use create() method of derived classes (ValueTypeDouble, ValueTypeDouble, ValueTypeBool, ValueTypeEnum).

Member Function Documentation

__str__()

Function to allow printing instances of this class in python. Returns The unique name of this ValueType

attribute() [1/2]

Returns the value of the given attribute. An attribute is a named value, to specify the behavior of the ValueType. For instance min/max. See ValueType derived classes for documentation of available attributes. Parameters Exceptions

attribute() [2/2]

Returns the value of the given attribute. Default value is returned if the attribute is undefined. An attribute is a named value, to specify the behavior of the ValueType. For instance min/max. See ValueType derived classes for documentation of available attributes. Parameters

eraseAttribute()

Removes an attribute. Parameters Returns True if the attribute was removed. False if the attribute was undefined.

setAttribute()

Define an attribute. Existing attributes are overwritten. Parameters

toDouble()

pure virtual Convert a string to number precision floating point value. See also Derived classes for type specific implementation Parameters Returns The converted value Implemented in ValueTypeEnum, ValueTypeBool, ValueTypeDouble, and ValueTypeInt.

toString()

pure virtual Convert a string to number precision floating point value. See also Derived classes for type specific implementation Parameters Returns The converted value Implemented in ValueTypeEnum, ValueTypeBool, ValueTypeInt, and ValueTypeDouble.