mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
lib refactoring
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4531 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
a9c47e397a
commit
6beb47ad28
@ -1,93 +0,0 @@
|
||||
/***************************************************************************
|
||||
qgsdatamanager.cpp
|
||||
-------------------
|
||||
begin : 24, August 2005
|
||||
copyright : (C) 2005 by Mark Coletti
|
||||
email : mcoletti -> gmail.com
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "qgsdatamanager.h"
|
||||
#include "qgsmaplayer.h"
|
||||
#include "qgsvectordataprovider.h"
|
||||
#include "qgsproviderregistry.h"
|
||||
|
||||
|
||||
|
||||
static const char* const ident_ = "$Id$";
|
||||
|
||||
|
||||
|
||||
QgsDataManager * QgsDataManager::instance_ = 0x0;
|
||||
|
||||
|
||||
QgsDataManager::QgsDataManager()
|
||||
{
|
||||
} // QgsDataManager ctor
|
||||
|
||||
|
||||
|
||||
QgsDataManager::~QgsDataManager()
|
||||
{
|
||||
if ( instance_ )
|
||||
{
|
||||
delete instance_;
|
||||
}
|
||||
} // QgsDataManager dtor
|
||||
|
||||
|
||||
|
||||
|
||||
QgsDataManager &
|
||||
QgsDataManager::instance()
|
||||
{
|
||||
if ( ! instance_ )
|
||||
{
|
||||
instance_ = new QgsDataManager;
|
||||
}
|
||||
|
||||
return *instance_;
|
||||
} // QgsDataManager::instance()
|
||||
|
||||
|
||||
|
||||
bool QgsDataManager::openVector( QString const & name )
|
||||
{
|
||||
// find the default provider that can handle the given name
|
||||
|
||||
// note that we may already have the provider
|
||||
|
||||
// create a QgsDataSourceLayer for the provider
|
||||
return false;
|
||||
} // QgsDataManager::openVector
|
||||
|
||||
|
||||
|
||||
bool QgsDataManager::openVector( QString const & name, QgsDataProvider & provider )
|
||||
{
|
||||
return false;
|
||||
} // QgsDataManager::openVector
|
||||
|
||||
|
||||
|
||||
bool QgsDataManager::openRaster( QString const & name )
|
||||
{
|
||||
return false;
|
||||
} // QgsDataManager::openRaster
|
||||
|
||||
|
||||
|
||||
bool QgsDataManager::openRaster( QString const & name, QgsDataProvider & provider )
|
||||
{
|
||||
return false;
|
||||
} // QgsDataManager::openRaster
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user