Next: , Previous: bpipe_datatype_name, Up: Utility Functions


A.4.6 bpipe_datatype_resolve

Identify a datatype.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
BPDataType bpipe_datatype_resolve(char *datatype);

Parameters

char *datatype
a string with the name of a datatype

Description

This routine will return a BPDataType corresponding to the passed string, which should contain the name of a datatype.

Returns

It returns BPDType_NOTYPE upon failure, else the code for the datatype.


Possible values for a BPDataType are as follows: BPDType_char, BPDType_double, BPDType_int, BPDType_uint, BPDType_DVector2, BPDType_DVector3, BPDType_IVector2, BPDType_IVector3, BPDType_UIVector2, BPDType_UIVector3, BPDType_DComplex, BPDType_DCVector2, BPDType_DCVector3