VistaIORepnSize(3) obtain information about a type's representation

Other Alias

VistaIORepnName, etc.


typedef enum {

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)


Specifies the data type about which information is sought.


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.


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.


Art Pope <[email protected]>

Adaption to vistaio: Gert Wollny <[email protected]>