SdsGetCode - Return the code of an object

Function

Return the code of an object

Description

Given the identifier to an object, return the type code.

Language

C

Declaration

void SdsGetCode(SdsIdType id, SdsCodeType *code, StatusType * SDSCONST status)

Parameters

(">" input, "!" modified, "W" workspace, "<" output)

>idSdsIdTypeThe identifier to the data object.
<codeSdsCodeType*The type code for the object. One of the following values (defined in sds.h):

SDS_STRUCT Structure
SDS_CHAR Character
SDS_BYTE Signed byte
SDS_UBYTE Unsigned byte
SDS_SHORT Signed short integer
SDS_USHORT Unsigned short integer
SDS_INT Signed long integer
SDS_UINT Unsigned long integer
SDS_I64 Signed 64 bit integer
SDS_UI64 Unsigned 64 bit integer
SDS_FLOAT Floating point
SDS_DOUBLE Double precision floating point

!statusStatusType*Modified status. Possible failure codes are:

SDS__BADID The identifier is invalid

Prior requirements

None.

Support

Tony Farrell, {AAO}

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tony.farrell@mq.edu.au