VistaIODecodeAttrValue - decode an attribute value
Contents
Arguments
str Specifies the attribute value to be decoded.
dict May specify a dictionary to be used in recognizing the value supplied as a keyword, or it may
be NULLrepn Specifies the representation in which the value is to be returned. It must be one of
VistaIOBitRepn, VistaIOUByteRepn, VistaIOSByteRepn, VistaIOShortRepn, VistaIOLongRepn,
VistaIOFloatRepn, VistaIODoubleRepn, VistaIOBooleanRepn, or VistaIOStringRepn.
value Specifies a location at which the value is be returned.
Description
VistaIODecodeAttrValue decodes the string str, returning its value in the form specified by repn.
If a dictionary, dict, has been provided, the routine determines whether str is a keyword defined in the
dictionary. If so, it uses the value associated with that keyword rather than the attribute's original
value. (See the VistaIOdictionary(3) manual page.)
The value obtained directly from str, or indirectly via the dictionary, is converted to the
representation repn and then stored at the location pointed to by value.
Diagnostics
``Can't decode to repn.''
The repn argument is not one of VistaIOBitRepn, VistaIOUByteRepn, ..., VistaIOBooleanRepn, or Vis‐taIOStringRepn.
Name
VistaIODecodeAttrValue - decode an attribute value
Notes
The value argument must point to sufficient storage to contain a value of the representation requested.
Neither VistaIODecodeAttrValue nor the C compiler can automatically check that this is so.
Return Values
VistaIODecodeAttrValue returns TRUE if successful and FALSE otherwise. It will fail if repn is invalid,
or if the str cannot be interpreted as a value of the type indicated by repn.
See Also
VistaIOEncodeAttrValue(3), VistaIOGetAttr(3), VistaIOattribute(3),
Synopsis
VistaIOBooleanVistaIODecodeAttrValue(str,dict,repn,value)VistaIOStringConststr;VistaIODictEntry*dict;VistaIORepnKindrepn;VistaIOPointervalue;
