Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

filetypes.h File Reference


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 ()

Enumeration Type Documentation

enum filetype_type
 

Enum type for filetypes (files identifiers). Once a file is resolved into a filetype (or file identifier), the latter will be used to instantiate a specific file object able to handle its contents

Enumeration values:
FILETYPE_MODIS_AQUA_1KM  enum code identifying MYD021KM files (Modis over Aqua products)
FILETYPE_MODIS_TERRA_1KM  enum code identifying MOD021KM files (Modis over Terra products)
FILETYPE_CAL_IIR_L1  enum code identifying CAL_IIR_L1 files (IIR over CALIPSO products)
FILETYPE_HDF_SEVIRI  enum code identifying SEVIRI mosaic files (SEVIRI hdf products, from Icare)
FILETYPE_XRIT_SEVIRI  enum code identifying SEVIRI original files (SEVIRI XRIT products)
FILETYPE_UNKNOWN  enum code for not known or not supported products (should always be the last field of the enum)


Function Documentation

char* filetype_to_cstr filetype_type  filetype  ) 
 

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)

Parameters:
filetype one of the filetypes owned by the filetype_type enumeration
Returns:
a pointer adressing a static array of chars containing a human readable description of the filetype

filetype_type get_filetype const char *  filename  ) 
 

resolves a filename into one of the filetypes from the filetype_type enumeration

Parameters:
filename the name of one of the software-supported products
Returns:
one of the filetypes from the filetype_type enumeration, or FILETYPE_UNKNOWN is the argument is invalid or not supported

void print_supported_filetypes  ) 
 

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

See also:
filetype_type

filetype_to_cstr(filetype_type filetype)

usage()


Generated on Wed Apr 19 17:05:06 2006 for Remap by  doxygen 1.3.9.1