Main Page Class Hierarchy Compound List File List Compound Members File Members Related Pages

# gdalallregister.cpp

    00001 /******************************************************************************
    00002  * Copyright (c) 1998, Frank Warmerdam
    00003  *
    00004  * Permission is hereby granted, free of charge, to any person obtaining a
    00005  * copy of this software and associated documentation files (the "Software"),
    00006  * to deal in the Software without restriction, including without limitation
    00007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    00008  * and/or sell copies of the Software, and to permit persons to whom the
    00009  * Software is furnished to do so, subject to the following conditions:
    00010  *
    00011  * The above copyright notice and this permission notice shall be included
    00012  * in all copies or substantial portions of the Software.
    00013  *
    00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    00015  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    00017  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00018  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    00019  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    00020  * DEALINGS IN THE SOFTWARE.
    00021  ******************************************************************************
    00022  *
    00023  * gdalallregister.cpp
    00024  *
    00025  * Main format registration function.
    00026  *
    00027  * $Log: gdalallregister_cpp-source.html,v $
    00027  * Revision 1.5  2000/11/06 04:49:01  warmerda
    00027  * *** empty log message ***
    00027  *
    00028  * Revision 1.23  2000/09/11 13:32:26  warmerda
    00029  * added grass
    00030  *
    00031  * Revision 1.22  2000/07/19 19:06:39  warmerda
    00032  * added mem
    00033  *
    00034  * Revision 1.21  2000/06/20 17:36:38  warmerda
    00035  * added eosat fast format support
    00036  *
    00037  * Revision 1.20  2000/04/28 20:59:03  warmerda
    00038  * added jpeg
    00039  *
    00040  * Revision 1.19  2000/04/27 20:02:17  warmerda
    00041  * added png
    00042  *
    00043  * Revision 1.18  2000/04/04 23:44:45  warmerda
    00044  * also call auto register function
    00045  *
    00046  * Revision 1.17  2000/03/31 13:35:32  warmerda
    00047  * added SAR_CEOS
    00048  *
    00049  * Revision 1.16  2000/03/07 21:34:50  warmerda
    00050  * added HKV
    00051  *
    00052  * Revision 1.15  2000/03/06 21:51:09  warmerda
    00053  * Added MFF
    00054  *
    00055  * Revision 1.14  2000/01/31 16:24:37  warmerda
    00056  * added aigrid2
    00057  *
    00058  * Revision 1.13  1999/12/29 20:42:45  warmerda
    00059  * Added DOQ1
    00060  *
    00061  * Revision 1.12  1999/10/21 13:24:52  warmerda
    00062  * Added documentation.
    00063  *
    00064  * Revision 1.11  1999/08/13 03:25:58  warmerda
    00065  * add paux
    00066  *
    00067  * Revision 1.10  1999/07/23 19:36:41  warmerda
    00068  * added raw/ehdr support
    00069  *
    00070  * Revision 1.9  1999/06/03 14:05:33  warmerda
    00071  * added SDTS support
    00072  *
    00073  * Revision 1.8  1999/05/17 01:51:43  warmerda
    00074  * Removed unused variable.
    00075  *
    00076  * Revision 1.7  1999/05/13 15:28:19  warmerda
    00077  * Added elas format.
    00078  *
    00079  * Revision 1.6  1999/05/05 17:32:53  warmerda
    00080  * added ceos
    00081  *
    00082  * Revision 1.5  1999/02/04 22:14:46  warmerda
    00083  * added aigrid format
    00084  *
    00085  * Revision 1.4  1999/01/27 18:33:45  warmerda
    00086  * Use FMRT_ macros to test if format avail
    00087  *
    00088  * Revision 1.3  1999/01/11 15:30:16  warmerda
    00089  * added OGDI
    00090  *
    00091  * Revision 1.2  1998/12/03 18:37:26  warmerda
    00092  * Drop GDB, add geotiff.
    00093  *
    00094  * Revision 1.1  1998/11/29 22:22:14  warmerda
    00095  * New
    00096  *
    00097  */
    00098
    00099 #include "gdal_priv.h"
    00100
    00101 CPL_C_START
    00102 void GDALRegister_GDB(void);
    00103 void GDALRegister_GTiff(void);
    00104 void GDALRegister_GXF(void);
    00105 void GDALRegister_OGDI(void);
    00106 void GDALRegister_HFA(void);
    00107 void GDALRegister_AIGrid(void);
    00108 void GDALRegister_AIGrid2(void);
    00109 void GDALRegister_CEOS(void);
    00110 void GDALRegister_SAR_CEOS(void);
    00111 void GDALRegister_SDTS(void);
    00112 void GDALRegister_ELAS(void);
    00113 void GDALRegister_EHdr(void);
    00114 void GDALRegister_PAux(void);
    00115 void GDALRegister_EFF(void);
    00116 void GDALRegister_DOQ1(void);
    00117 void GDALRegister_DTED(void);
    00118 void GDALRegister_MFF(void);
    00119 void GDALRegister_HKV(void);
    00120 void GDALRegister_PNG(void);
    00121 void GDALRegister_JPEG(void);
    00122 void GDALRegister_MEM(void);
    00123 void GDALRegister_GRASS(void);
    00124 CPL_C_END
    00125
    00126 #ifdef notdef
    00127 // we may have a use for this some day
    00128 static char *szConfiguredFormats = "GDAL_FORMATS";
    00129 #endif
    00130
    00131 /************************************************************************/
    00132 /*                          GDALAllRegister()                           */
    00133 /*                                                                      */
    00134 /*      Register all identifiably supported formats.                    */
    00135 /************************************************************************/
    00136
    00159 void GDALAllRegister()
    00160
    00161 {
    00162     GetGDALDriverManager()->AutoLoadDrivers();
    00163
    00164 #ifdef FRMT_gdb
    00165     GDALRegister_GDB();
    00166 #endif
    00167
    00168 #ifdef FRMT_gtiff
    00169     GDALRegister_GTiff();
    00170 #endif
    00171
    00172 #ifdef FRMT_gxf
    00173     GDALRegister_GXF();
    00174 #endif
    00175
    00176 #ifdef FRMT_hfa
    00177     GDALRegister_HFA();
    00178 #endif
    00179
    00180 #ifdef FRMT_ceos2
    00181     GDALRegister_SAR_CEOS();
    00182 #endif
    00183
    00184 #ifdef FRMT_ceos
    00185     GDALRegister_CEOS();
    00186 #endif
    00187
    00188 #ifdef FRMT_elas
    00189     GDALRegister_ELAS();
    00190 #endif
    00191
    00192 #ifdef FRMT_aigrid
    00193     GDALRegister_AIGrid2();
    00194     GDALRegister_AIGrid();
    00195 #endif
    00196
    00197 #ifdef FRMT_sdts
    00198     GDALRegister_SDTS();
    00199 #endif
    00200
    00201 #ifdef FRMT_ogdi
    00202     GDALRegister_OGDI();
    00203 #endif
    00204
    00205 #ifdef FRMT_dted
    00206     GDALRegister_DTED();
    00207 #endif
    00208
    00209 #ifdef FRMT_png
    00210     GDALRegister_PNG();
    00211 #endif
    00212
    00213 #ifdef FRMT_jpeg
    00214     GDALRegister_JPEG();
    00215 #endif
    00216
    00217 #ifdef FRMT_mem
    00218     GDALRegister_MEM();
    00219 #endif
    00220
    00221 #ifdef FRMT_raw
    00222     GDALRegister_DOQ1();
    00223     GDALRegister_EHdr();
    00224     GDALRegister_PAux();
    00225     GDALRegister_MFF();
    00226     GDALRegister_HKV();
    00227     GDALRegister_EFF();
    00228 #endif
    00229
    00230 #ifdef FRMT_grass
    00231     GDALRegister_GRASS();
    00232 #endif
    00233 }