| 551 | } |
| 552 | |
| 553 | GMT_LOCAL inline GMT_getfunction gmtapi_select_get_function (struct GMTAPI_CTRL *API, unsigned int type) { |
| 554 | switch (type) { /* Use type to select the correct get function with which to extract a value from the union */ |
| 555 | case GMT_DOUBLE: return (gmtapi_get_val_double); break; |
| 556 | case GMT_FLOAT: return (gmtapi_get_val_float); break; |
| 557 | case GMT_ULONG: return (gmtapi_get_val_ulong); break; |
| 558 | case GMT_LONG: return (gmtapi_get_val_long); break; |
| 559 | case GMT_UINT: return (gmtapi_get_val_uint); break; |
| 560 | case GMT_INT: return (gmtapi_get_val_int); break; |
| 561 | case GMT_USHORT: return (gmtapi_get_val_ushort); break; |
| 562 | case GMT_SHORT: return (gmtapi_get_val_short); break; |
| 563 | case GMT_UCHAR: return (gmtapi_get_val_uchar); break; |
| 564 | case GMT_CHAR: return (gmtapi_get_val_char); break; |
| 565 | default: |
| 566 | GMT_Report (API, GMT_MSG_ERROR, "Internal error in gmtapi_select_get_function: Passed bad type (%d), will be unable to convert binary data\n", type); |
| 567 | return NULL; |
| 568 | break; |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | GMT_LOCAL bool gmtapi_valid_input_family (unsigned int family) { |
| 573 | /* Return true for the main input types */ |
no test coverage detected