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

## Standard Driver Registration: gdalallregister.cpp

    /******************************************************************************
     * Copyright (c) 1998, Frank Warmerdam
     *
     * Permission is hereby granted, free of charge, to any person obtaining a
     * copy of this software and associated documentation files (the "Software"),
     * to deal in the Software without restriction, including without limitation
     * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     * and/or sell copies of the Software, and to permit persons to whom the
     * Software is furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included
     * in all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
     * DEALINGS IN THE SOFTWARE.
     ******************************************************************************
     *
     * gdalallregister.cpp
     *
     * Main format registration function.
     *
     * $Log: gdalallregister.cpp,v $
     * Revision 1.28  2001/01/15 14:32:30  warmerda
     * added envisat
     *
     * Revision 1.27  2001/01/10 04:41:09  warmerda
     * added gif support
     *
     * Revision 1.26  2001/01/03 18:53:23  warmerda
     * Added PNM
     *
     * Revision 1.25  2000/11/27 19:03:44  warmerda
     * added JDEM format
     *
     * Revision 1.24  2000/11/16 14:48:53  warmerda
     * moved GXF down in driver ordering
     *
     * Revision 1.23  2000/09/11 13:32:26  warmerda
     * added grass
     *
     * Revision 1.22  2000/07/19 19:06:39  warmerda
     * added mem
     *
     * Revision 1.21  2000/06/20 17:36:38  warmerda
     * added eosat fast format support
     *
     * Revision 1.20  2000/04/28 20:59:03  warmerda
     * added jpeg
     *
     * Revision 1.19  2000/04/27 20:02:17  warmerda
     * added png
     *
     * Revision 1.18  2000/04/04 23:44:45  warmerda
     * also call auto register function
     *
     * Revision 1.17  2000/03/31 13:35:32  warmerda
     * added SAR_CEOS
     *
     * Revision 1.16  2000/03/07 21:34:50  warmerda
     * added HKV
     *
     * Revision 1.15  2000/03/06 21:51:09  warmerda
     * Added MFF
     *
     * Revision 1.14  2000/01/31 16:24:37  warmerda
     * added aigrid2
     *
     * Revision 1.13  1999/12/29 20:42:45  warmerda
     * Added DOQ1
     *
     * Revision 1.12  1999/10/21 13:24:52  warmerda
     * Added documentation.
     *
     * Revision 1.11  1999/08/13 03:25:58  warmerda
     * add paux
     *
     * Revision 1.10  1999/07/23 19:36:41  warmerda
     * added raw/ehdr support
     *
     * Revision 1.9  1999/06/03 14:05:33  warmerda
     * added SDTS support
     *
     * Revision 1.8  1999/05/17 01:51:43  warmerda
     * Removed unused variable.
     *
     * Revision 1.7  1999/05/13 15:28:19  warmerda
     * Added elas format.
     *
     * Revision 1.6  1999/05/05 17:32:53  warmerda
     * added ceos
     *
     * Revision 1.5  1999/02/04 22:14:46  warmerda
     * added aigrid format
     *
     * Revision 1.4  1999/01/27 18:33:45  warmerda
     * Use FMRT_ macros to test if format avail
     *
     * Revision 1.3  1999/01/11 15:30:16  warmerda
     * added OGDI
     *
     * Revision 1.2  1998/12/03 18:37:26  warmerda
     * Drop GDB, add geotiff.
     *
     * Revision 1.1  1998/11/29 22:22:14  warmerda
     * New
     *
     */

    #include "gdal_priv.h"

    CPL_C_START
    void GDALRegister_GDB(void);
    void GDALRegister_GTiff(void);
    void GDALRegister_GXF(void);
    void GDALRegister_OGDI(void);
    void GDALRegister_HFA(void);
    void GDALRegister_AIGrid(void);
    void GDALRegister_AIGrid2(void);
    void GDALRegister_CEOS(void);
    void GDALRegister_SAR_CEOS(void);
    void GDALRegister_SDTS(void);
    void GDALRegister_ELAS(void);
    void GDALRegister_EHdr(void);
    void GDALRegister_PAux(void);
    void GDALRegister_EFF(void);
    void GDALRegister_DOQ1(void);
    void GDALRegister_DTED(void);
    void GDALRegister_MFF(void);
    void GDALRegister_HKV(void);
    void GDALRegister_PNG(void);
    void GDALRegister_JPEG(void);
    void GDALRegister_MEM(void);
    void GDALRegister_JDEM(void);
    void GDALRegister_GRASS(void);
    void GDALRegister_PNM(void);
    void GDALRegister_GIF(void);
    void GDALRegister_Envisat(void);
    CPL_C_END

    #ifdef notdef
    // we may have a use for this some day
    static char *szConfiguredFormats = "GDAL_FORMATS";
    #endif

    /************************************************************************/
    /*                          GDALAllRegister()                           */
    /*                                                                      */
    /*      Register all identifiably supported formats.                    */
    /************************************************************************/

    void GDALAllRegister()

    {
        GetGDALDriverManager()->AutoLoadDrivers();

    #ifdef FRMT_gdb
        GDALRegister_GDB();
    #endif

    #ifdef FRMT_gtiff
        GDALRegister_GTiff();
    #endif

    #ifdef FRMT_hfa
        GDALRegister_HFA();
    #endif

    #ifdef FRMT_ceos2
        GDALRegister_SAR_CEOS();
    #endif

    #ifdef FRMT_ceos
        GDALRegister_CEOS();
    #endif

    #ifdef FRMT_elas
        GDALRegister_ELAS();
    #endif

    #ifdef FRMT_aigrid
        GDALRegister_AIGrid2();
        GDALRegister_AIGrid();
    #endif

    #ifdef FRMT_sdts
        GDALRegister_SDTS();
    #endif

    #ifdef FRMT_ogdi
        GDALRegister_OGDI();
    #endif

    #ifdef FRMT_dted
        GDALRegister_DTED();
    #endif

    #ifdef FRMT_png
        GDALRegister_PNG();
    #endif

    #ifdef FRMT_jpeg
        GDALRegister_JPEG();
    #endif

    #ifdef FRMT_mem
        GDALRegister_MEM();
    #endif

    #ifdef FRMT_jdem
        GDALRegister_JDEM();
    #endif

    #ifdef FRMT_gif
        GDALRegister_GIF();
    #endif

    #ifdef FRMT_envisat
        GDALRegister_Envisat();
    #endif

    #ifdef FRMT_raw
        GDALRegister_PNM();
        GDALRegister_DOQ1();
        GDALRegister_EHdr();
        GDALRegister_PAux();
        GDALRegister_MFF();
        GDALRegister_HKV();
        GDALRegister_EFF();
    #endif

    /* -------------------------------------------------------------------- */
    /*      Our "test" to see if the file is GXF is weak, so we leave it    */
    /*      after most other "safe" formats.                                */
    /* -------------------------------------------------------------------- */

    #ifdef FRMT_gxf
        GDALRegister_GXF();
    #endif

    #ifdef FRMT_grass
        GDALRegister_GRASS();
    #endif
    }