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

Function GMT_Read_VirtualFile

src/gmt_api.c:9397–9408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9395#endif
9396
9397void * GMT_Read_VirtualFile (void *V_API, const char *string) {
9398 /* Given a VirtualFile name, retrieve the resulting object */
9399 int object_ID;
9400 void *object = NULL;
9401 if (V_API == NULL) return_null (V_API, GMT_NOT_A_SESSION);
9402 if (string == NULL) return_null (V_API, GMT_PTR_IS_NULL);
9403 if ((object_ID = gmtapi_decode_id (string)) == GMT_NOTSET)
9404 return_null (V_API, GMT_OBJECT_NOT_FOUND);
9405 if ((object = gmtapi_retrieve_data (V_API, object_ID)) == NULL)
9406 return_null (V_API, GMT_OBJECT_NOT_FOUND);
9407 return object;
9408}
9409
9410#ifdef FORTRAN_API
9411void * GMT_Read_VirtualFile_ (char *string, int len) {

Callers 15

GMT_grdviewFunction · 0.85
mainFunction · 0.85
grdfilter_mt.cFile · 0.85
mainFunction · 0.85
GMT_batchFunction · 0.85
GMT_insetFunction · 0.85
gmtlib_assemble_tilesFunction · 0.85
grdfilter.cFile · 0.85
GMT_movieFunction · 0.85
GMT_Read_VirtualFile_Function · 0.85
GMT_Read_DataFunction · 0.85
mainFunction · 0.85

Calls 2

gmtapi_decode_idFunction · 0.85
gmtapi_retrieve_dataFunction · 0.85

Tested by 13

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
deploy_testFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
deploy_testFunction · 0.68
mainFunction · 0.68