MISR Toolkit  1.5.1
Macros | Typedefs | Enumerations
MisrError.h File Reference
#include <stdio.h>

Go to the source code of this file.

Macros

#define MTK_ERR_DESC
 
#define MTK_ERR_MSG_JUMP(msg)
 
#define MTK_ERR_CODE_JUMP(code)
 
#define MTK_ERR_CODE_MSG_JUMP(code, msg)
 
#define MTK_ERR_COND_JUMP(code)
 
#define MTK_PRINT_STATUS(n, v)
 
#define MTK_PRINT_RESULT(n, v)
 

Typedefs

typedef enum MTKt_boolean MTKt_boolean
 
typedef enum MTKt_status MTKt_status
 

Enumerations

enum  MTKt_boolean {
  MTK_FALSE = 0,
  MTK_TRUE
}
 
enum  MTKt_status {
  MTK_SUCCESS = 0,
  MTK_FAILURE,
  MTK_OUTBOUNDS,
  MTK_BAD_ARGUMENT,
  MTK_NOT_FOUND,
  MTK_FILE_NOT_FOUND,
  MTK_FILE_OPEN,
  MTK_NULLPTR,
  MTK_DIMENSION_MISMATCH,
  MTK_DATATYPE_MISMATCH,
  MTK_MALLOC_FAILED,
  MTK_CALLOC_FAILED,
  MTK_REALLOC_FAILED,
  MTK_GCTP_FORWARD_INIT_FAILED,
  MTK_GCTP_INVERSE_INIT_FAILED,
  MTK_GCTP_FORWARD_PROJ_FAILED,
  MTK_GCTP_INVERSE_PROJ_FAILED,
  MTK_MISR_PROJ_INIT_FAILED,
  MTK_MISR_FORWARD_PROJ_FAILED,
  MTK_MISR_INVERSE_PROJ_FAILED,
  MTK_HDF_OPEN_FAILED,
  MTK_HDF_ATTACH_FAILED,
  MTK_HDF_SDSTART_FAILED,
  MTK_HDF_SDEND_FAILED,
  MTK_HDF_SDFILEINFO_FAILED,
  MTK_HDF_SDFINDATTR_FAILED,
  MTK_HDF_SDREADATTR_FAILED,
  MTK_HDF_SDATTRINFO_FAILED,
  MTK_HDF_HDFCLOSE_FAILED,
  MTK_HDF_HDFOPEN_FAILED,
  MTK_HDF_VEND_FAILED,
  MTK_HDF_VFFIELDORDER_FAILED,
  MTK_HDF_VFFIELDTYPE_FAILED,
  MTK_HDF_VFNFIELDS_FAILED,
  MTK_HDF_VSATTACH_FAILED,
  MTK_HDF_VSDETACH_FAILED,
  MTK_HDF_VSELTS_FAILED,
  MTK_HDF_VSFIND_FAILED,
  MTK_HDF_VSFINDEX_FAILED,
  MTK_HDF_VSGETFIELDS_FAILED,
  MTK_HDF_VSGETNAME_FAILED,
  MTK_HDF_VSREAD_FAILED,
  MTK_HDF_VSSETFIELDS_FAILED,
  MTK_HDF_VSSIZEOF_FAILED,
  MTK_HDF_VSTART_FAILED,
  MTK_HDFEOS_GDOPEN_FAILED,
  MTK_HDFEOS_GDCLOSE_FAILED,
  MTK_HDFEOS_GDATTACH_FAILED,
  MTK_HDFEOS_GDDETACH_FAILED,
  MTK_HDFEOS_GDINQATTRS_FAILED,
  MTK_HDFEOS_GDINQGRID_FAILED,
  MTK_HDFEOS_GDINQFIELDS_FAILED,
  MTK_HDFEOS_GDNENTRIES_FAILED,
  MTK_HDFEOS_GDREADATTR_FAILED,
  MTK_HDFEOS_GDATTRINFO_FAILED,
  MTK_HDFEOS_GDFIELDINFO_FAILED,
  MTK_HDFEOS_GDDIMINFO_FAILED,
  MTK_HDFEOS_GDREADFIELD_FAILED,
  MTK_HDFEOS_GDGETFILLVALUE_FAILED,
  MTK_HDFEOS_GDPROJINFO_FAILED,
  MTK_HDFEOS_GDGRIDINFO_FAILED,
  MTK_HDFEOS_EHIDINFO_FAILED,
  MTK_NETCDF_OPEN_FAILED,
  MTK_NETCDF_READ_FAILED,
  MTK_NETCDF_CLOSE_FAILED,
  MTK_FILETYPE_NOT_SUPPORTED,
  MTK_DATATYPE_NOT_SUPPORTED,
  MTK_INVALID_FILE,
  MTK_INVALID_GRID,
  MTK_INVALID_FIELD,
  MTK_INVALID_FIELD_DIMENSION,
  MTK_MISSING_FIELD_DIMENSION,
  MTK_EXTRA_FIELD_DIMENSION,
  MTK_DIV_BY_ZERO,
  MTK_INVALID_ERROR_CODE
}
 

Macro Definition Documentation

◆ MTK_ERR_CODE_JUMP

#define MTK_ERR_CODE_JUMP (   code)
Value:
{ \
status_code = code; \
goto ERROR_HANDLE; \
}

Definition at line 175 of file MisrError.h.

◆ MTK_ERR_CODE_MSG_JUMP

#define MTK_ERR_CODE_MSG_JUMP (   code,
  msg 
)
Value:
{ \
fprintf(stderr,"Error: %s\n",msg); \
status_code = code; \
goto ERROR_HANDLE; \
}

Definition at line 181 of file MisrError.h.

◆ MTK_ERR_COND_JUMP

#define MTK_ERR_COND_JUMP (   code)
Value:
if (code != MTK_SUCCESS) \
{ \
status_code = code; \
goto ERROR_HANDLE; \
}

Definition at line 188 of file MisrError.h.

◆ MTK_ERR_DESC

#define MTK_ERR_DESC

Definition at line 91 of file MisrError.h.

◆ MTK_ERR_MSG_JUMP

#define MTK_ERR_MSG_JUMP (   msg)
Value:
{ \
fprintf(stderr,"Error: %s\n",msg); \
goto ERROR_HANDLE; \
}

Definition at line 169 of file MisrError.h.

◆ MTK_PRINT_RESULT

#define MTK_PRINT_RESULT (   n,
 
)
Value:
{ \
int i; \
for(i=0; i < 55-n; i++) printf(" "); \
printf("%s\n", v); \
}
HDFFCLIBAPI _fcd _fcd intf * n

Definition at line 201 of file MisrError.h.

◆ MTK_PRINT_STATUS

#define MTK_PRINT_STATUS (   n,
 
)
Value:
{ \
printf("%s", v); \
fflush(stdout); \
n += sizeof(v) - 1;\
}

Definition at line 195 of file MisrError.h.

Typedef Documentation

◆ MTKt_boolean

typedef enum MTKt_boolean MTKt_boolean

◆ MTKt_status

typedef enum MTKt_status MTKt_status

Enumeration Type Documentation

◆ MTKt_boolean

Enumerator
MTK_FALSE 
MTK_TRUE 

Definition at line 6 of file MisrError.h.

◆ MTKt_status

Enumerator
MTK_SUCCESS 
MTK_FAILURE 
MTK_OUTBOUNDS 
MTK_BAD_ARGUMENT 
MTK_NOT_FOUND 
MTK_FILE_NOT_FOUND 
MTK_FILE_OPEN 
MTK_NULLPTR 
MTK_DIMENSION_MISMATCH 
MTK_DATATYPE_MISMATCH 
MTK_MALLOC_FAILED 
MTK_CALLOC_FAILED 
MTK_REALLOC_FAILED 
MTK_GCTP_FORWARD_INIT_FAILED 
MTK_GCTP_INVERSE_INIT_FAILED 
MTK_GCTP_FORWARD_PROJ_FAILED 
MTK_GCTP_INVERSE_PROJ_FAILED 
MTK_MISR_PROJ_INIT_FAILED 
MTK_MISR_FORWARD_PROJ_FAILED 
MTK_MISR_INVERSE_PROJ_FAILED 
MTK_HDF_OPEN_FAILED 
MTK_HDF_ATTACH_FAILED 
MTK_HDF_SDSTART_FAILED 
MTK_HDF_SDEND_FAILED 
MTK_HDF_SDFILEINFO_FAILED 
MTK_HDF_SDFINDATTR_FAILED 
MTK_HDF_SDREADATTR_FAILED 
MTK_HDF_SDATTRINFO_FAILED 
MTK_HDF_HDFCLOSE_FAILED 
MTK_HDF_HDFOPEN_FAILED 
MTK_HDF_VEND_FAILED 
MTK_HDF_VFFIELDORDER_FAILED 
MTK_HDF_VFFIELDTYPE_FAILED 
MTK_HDF_VFNFIELDS_FAILED 
MTK_HDF_VSATTACH_FAILED 
MTK_HDF_VSDETACH_FAILED 
MTK_HDF_VSELTS_FAILED 
MTK_HDF_VSFIND_FAILED 
MTK_HDF_VSFINDEX_FAILED 
MTK_HDF_VSGETFIELDS_FAILED 
MTK_HDF_VSGETNAME_FAILED 
MTK_HDF_VSREAD_FAILED 
MTK_HDF_VSSETFIELDS_FAILED 
MTK_HDF_VSSIZEOF_FAILED 
MTK_HDF_VSTART_FAILED 
MTK_HDFEOS_GDOPEN_FAILED 
MTK_HDFEOS_GDCLOSE_FAILED 
MTK_HDFEOS_GDATTACH_FAILED 
MTK_HDFEOS_GDDETACH_FAILED 
MTK_HDFEOS_GDINQATTRS_FAILED 
MTK_HDFEOS_GDINQGRID_FAILED 
MTK_HDFEOS_GDINQFIELDS_FAILED 
MTK_HDFEOS_GDNENTRIES_FAILED 
MTK_HDFEOS_GDREADATTR_FAILED 
MTK_HDFEOS_GDATTRINFO_FAILED 
MTK_HDFEOS_GDFIELDINFO_FAILED 
MTK_HDFEOS_GDDIMINFO_FAILED 
MTK_HDFEOS_GDREADFIELD_FAILED 
MTK_HDFEOS_GDGETFILLVALUE_FAILED 
MTK_HDFEOS_GDPROJINFO_FAILED 
MTK_HDFEOS_GDGRIDINFO_FAILED 
MTK_HDFEOS_EHIDINFO_FAILED 
MTK_NETCDF_OPEN_FAILED 
MTK_NETCDF_READ_FAILED 
MTK_NETCDF_CLOSE_FAILED 
MTK_FILETYPE_NOT_SUPPORTED 
MTK_DATATYPE_NOT_SUPPORTED 
MTK_INVALID_FILE 
MTK_INVALID_GRID 
MTK_INVALID_FIELD 
MTK_INVALID_FIELD_DIMENSION 
MTK_MISSING_FIELD_DIMENSION 
MTK_EXTRA_FIELD_DIMENSION 
MTK_DIV_BY_ZERO 
MTK_INVALID_ERROR_CODE 

Definition at line 11 of file MisrError.h.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53