libgeotiff
geo_simpletags.h
00001 /**********************************************************************
00002  *
00003  *  geo_simpletags.h 
00004  *
00005  * Provides interface for a "simple tags io in memory" mechanism
00006  * as an alternative to accessing a real tiff file using libtiff.
00007  *
00008  **********************************************************************/
00009 
00010 #ifndef __geo_simpletags_h_
00011 #define __geo_simpletags_h_
00012 
00013 #include "geotiff.h"
00014 #include "cpl_serv.h"
00015 
00016 #if defined(__cplusplus)
00017 extern "C" {
00018 #endif
00019 
00020 #define STT_SHORT   1
00021 #define STT_DOUBLE  2
00022 #define STT_ASCII   3
00023 
00024 typedef struct {
00025     int tag;
00026     int count;
00027     int type;
00028     void *data;
00029 } ST_KEY;
00030 
00031 typedef struct {
00032     int key_count;
00033     ST_KEY *key_list;
00034 } ST_TIFF;
00035 
00036 typedef void *STIFF;
00037 
00038 void CPL_DLL GTIFSetSimpleTagsMethods(TIFFMethod *method);
00039 
00040 int CPL_DLL ST_SetKey( ST_TIFF *, int tag, int count, 
00041                        int st_type, void *data );
00042 int CPL_DLL ST_GetKey( ST_TIFF *, int tag, int *count, 
00043                        int *st_type, void **data_ptr );
00044 
00045 ST_TIFF CPL_DLL *ST_Create();
00046 void CPL_DLL ST_Destroy( ST_TIFF * );
00047 
00048 int CPL_DLL ST_TagType( int tag );
00049 
00050 #if defined(__cplusplus)
00051 } 
00052 #endif
00053 
00054 #endif /* __geo_simpletags_h_ */

Generated for libgeotiff by doxygen 1.7.6.1