Enumerations | |
enum | filetype_type { FILETYPE_MODIS_AQUA_1KM, FILETYPE_MODIS_TERRA_1KM, FILETYPE_CAL_IIR_L1, FILETYPE_HDF_SEVIRI, FILETYPE_XRIT_SEVIRI, FILETYPE_UNKNOWN } |
Functions | |
char * | filetype_to_cstr (filetype_type filetype) |
filetype_type | get_filetype (const char *filename) |
void | print_supported_filetypes () |
|
|
resolves a filetype into a static C-style (char *) string (one of the enum codes from filetype_type). cautious: as the returned value is a pointer to a static zone of memory, the function should never be called more than once in the same expression, nor in a multithread application (in theses cases its behaviour is undefined)
|
|
resolves a filename into one of the filetypes from the filetype_type enumeration
|
|
an helper function that prints every supported types of files in the application it simply calls filetype_to_cstr for each field of the filetype_type enumeration (except FILETYPE_UNKNOWN) and prints the result on the standard error
|