ogr/ogrsf_frmts/vfk/ogrvfkdriver.cpp
/*
  \brief Open existing data source
  \return NULL on failure
*/
\brief Open existing data source
\return NULL on failure
\ brief Open existing data source \ return NULL on failure
static GDALDataset *OGRVFKDriverOpen(GDALOpenInfo* poOpenInfo)
{
    if( poOpenInfo->eAccess == GA_Update ||
        !OGRVFKDriverIdentify(poOpenInfo) )
        return NULL;
    OGRVFKDataSource *poDS = new OGRVFKDataSource();
    if( !poDS->Open(poOpenInfo) ||
        poDS->GetLayerCount() == 0 )
    {
        delete poDS;
        return NULL;
    }
    else
        return poDS;
}
static GDALDataset * OGRVFKDriverOpen ( GDALOpenInfo * poOpenInfo ) { if ( poOpenInfo -> eAccess == GA_Update || ! OGRVFKDriverIdentify ( poOpenInfo ) ) return NULL ; OGRVFKDataSource * poDS = new OGRVFKDataSource ( ) ; if ( ! poDS -> Open ( poOpenInfo ) || poDS -> GetLayerCount ( ) == 0 ) { delete poDS ; return NULL ; } else return poDS ; }
\brief Open existing data source
\return NULL on failure
\ brief Open existing data source \ return NULL on failure