VistaIORepn(3)

NAME
VistaIORepnName, VistaIORepnSize, etc. - obtain information about a type's representation

SYNOPSIS
typedef enum {
    VistaIOUnknownRepn,
    VistaIOBitRepn, VistaIOUByteRepn, VistaIOSByteRepn, VistaIOShortRepn, VistaIOLongRepn,
    VistaIOFloatRepn, VistaIODoubleRepn,
    VistaIOAttrListRepn, VistaIOBooleanRepn, VistaIOBundleRepn, VistaIOListRepn, VistaIOPointerRepn, VistaIOStringRepn,
    VistaIOEdgesRepn, VistaIOImageRepn
} VistaIORepnKind;

VistaIOBoolean VistaIOIsFloatPtRepn (VistaIORepnKind repn)

VistaIOBoolean VistaIOIsIntegerRepn (VistaIORepnKind repn)

VistaIOStringConst VistaIORepnName (VistaIORepnKind repn)

VistaIODouble VistaIORepnMaxValue (VistaIORepnKind repn)

VistaIODouble VistaIORepnMinValue (VistaIORepnKind repn)

int VistaIORepnPrecision (VistaIORepnKind repn)

size_t VistaIORepnSize (VistaIORepnKind repn)

ARGUMENTS

repn
    Specifies the data type about which information is sought.

DESCRIPTION
These macros return information about Vista data types, each of which is identified by one of the VistaIORepnKind series of integer codes.

VistaIOIsFloatPtRepn returns TRUE if repn is VistaIOFloatRepn or VistaIODoubleRepn.

VistaIOIsIntegerRepn returns TRUE if repn is VistaIOBitRepn, VistaIOUByteRepn, VistaIOSByteRepn, VistaIOShortRepn, or VistaIOLongRepn.

VistaIORepnName returns a string naming the specified type. For example, when repn is VistaIOBitRepn it returns ``bit''.

VistaIORepnMaxValue returns the maximum value that can be represented by the specified type.

VistaIORepnMinValue returns the minimum (most negative) value that can be represented by the specified type.

VistaIORepnPrecision returns the minimum number of bits needed to represent the specified type on any machine.

VistaIORepnSize returns the size, in bytes, of the specified type on the present machine.

SEE ALSO
VistaIOConst(3),

NOTES
VistaIORepnMaxValue, VistaIORepnMinValue, and VistaIORepnPrecision are undefined (and return 0) if repn isn't VistaIOBitRepn through VistaIODoubleRepn, or VistaIOBooleanRepn.

A new value in the VistaIORepnKind series is assigned by VistaIORegisterType when it is called to register a new object type. That new value can be used in a call to any of these macros — all return 0 or FALSE except VistaIORepnName, which returns the name of the newly registered type.

AUTHOR
Art Pope <pope@cs.ubc.ca>

Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>