sdaiGetADBType


Returns the data type, i.e. the primitive type of the actual data value in the specified ADB container. The value in the actual ADB container is normally read from an attribute value or an aggregate element by an _EDMinterface_ get (read) operation.
Related functions: sdaiPutADBValue , sdaiGetADBValue
Header:
#include "sdai.h"
Prototype:
SdaiPrimitiveType sdaiGetADBType(SdaiADB adbId);
Arguments:

adbId

A numeric adbID that uniquely identifies the actual ADB container to operate on.
The adbID is defined by a sdaiCreateADB or sdaiCreateEmptyADB function.

Returns:
The primitive type of the data value in the actual ADB container. Use sdaiErrorQuery function to check for error during operation.
Example:
SdaiADB adbId;
SdaiAppInstance anInst;
SdaiPrimitiveType datatype;
...
adbId = sdaiCreateEmptyADB();
. . .
sdaiGetAttrBN(anInst, "attr", sdaiADB, adbId);
datatype = sdaiGetADBType(adbId);
errCode = sdaiErrorQuery();
if (errCode) {
/* Error in operation */ 
printf("\nError: %s in sdaiGetADBType \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .