Function PGAGetDataType

Function Documentation

int PGAGetDataType(PGAContext *ctx)

Return the data type used by the given context.

Example

PGAContext *ctx;
int datatype;

...
datatype = PGAGetDataType (ctx);
switch (datatype) {
case PGA_DATATYPE_BINARY:
    printf ("Data Type = PGA_DATATYPE_BINARY\n");
    break;
case PGA_DATATYPE_CHARACTER:
    printf ("Data Type = PGA_DATATYPE_CHARACTER\n");
    break;
case PGA_DATATYPE_INTEGER:
    printf ("Data Type = PGA_DATATYPE_INTEGER\n");
    break;
case PGA_DATATYPE_REAL:
    printf ("Data Type = PGA_DATATYPE_REAL\n");
    break;
case PGA_DATATYPE_USER:
    printf ("Data Type = PGA_DATATYPE_USER\n");
    break;
}

Parameters
  • ctx – context variable

Returns

The integer corresponding to the symbolic constant used to specify the data type