MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtapi_select_get_function

Function gmtapi_select_get_function

src/gmt_api.c:553–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553GMT_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
572GMT_LOCAL bool gmtapi_valid_input_family (unsigned int family) {
573 /* Return true for the main input types */

Callers 14

gmtapi_import_datasetFunction · 0.85
gmtapi_import_imageFunction · 0.85
gmtapi_import_gridFunction · 0.85
gmtapi_import_cubeFunction · 0.85
gmtapi_matrix2gridFunction · 0.85
gmtapi_write_matrixFunction · 0.85
gmtapi_write_vectorFunction · 0.85
gmtapi_get_record_matrixFunction · 0.85
gmtapi_get_record_vectorFunction · 0.85
gmtapi_get_record_initFunction · 0.85
gmtapi_matrix2datasetFunction · 0.85
gmtapi_matrix2vectorFunction · 0.85

Calls 1

GMT_ReportFunction · 0.85

Tested by

no test coverage detected