26 #ifndef __TERRALIB_GPKG_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_GPKG_INTERNAL_DATASOURCE_H
30 #include "../Config.h"
31 #include "../../../../dataaccess/datasource/DataSource.h"
32 #include "../../../../dataaccess/datasource/DataSourceCapabilities.h"
33 #include "../../../../dataaccess/dataset/DataSetType.h"
88 void create(
const std::map<std::string, std::string>& dsInfo);
90 void drop(
const std::map<std::string, std::string>& dsInfo);
92 bool exists(
const std::map<std::string, std::string>& dsInfo);
96 std::vector<te::core::EncodingType>
getEncodings(
const std::map<std::string, std::string>& dsInfo);
A class that models the description of a dataset.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
An abstract class for data providers like a DBMS, Web Services or a regular file.
It represents the SQL query dialect accepted by a given data source.
The OGR data source provider.
const std::map< std::string, std::string > & getConnectionInfo() const
static void setDialect(te::da::SQLDialect *dialect)
void createDataSet(te::da::DataSetType *dt, const std::map< std::string, std::string > &options)
It creates the dataset schema definition in the target data source.
std::map< std::string, std::string > m_connectionInfo
Connection information.
DataSource()
Default constructor that can be called by subclasses.
void create(const std::map< std::string, std::string > &dsInfo)
void open()
It opens the data source and makes it ready for using.
GDALDataset * m_ogrDS
A pointer to OGR Data Source.
bool m_isValid
True if this is a valid datasource.
std::vector< std::string > getDataSourceNames(const std::map< std::string, std::string > &dsInfo)
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
std::auto_ptr< te::da::DataSourceTransactor > getTransactor()
It returns the set of parameters used to set up the access channel to the underlying repository.
bool isOpened() const
It returns true if the data source is opened, otherwise it returns false.
void drop(const std::map< std::string, std::string > &dsInfo)
bool isValid() const
It checks if the data source is valid (available for using).
te::da::DataSourceCapabilities m_capabilities
OGR capabilities.
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
GDALDataset * getOGRDataSource()
bool exists(const std::map< std::string, std::string > &dsInfo)
void setConnectionInfo(const std::map< std::string, std::string > &connInfo)
~DataSource()
Virtual destructor.
std::vector< te::core::EncodingType > getEncodings(const std::map< std::string, std::string > &dsInfo)
static te::da::SQLDialect * sm_myDialect
OGR SQL dialect.
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS,...
void close()
It closes the data source and clears all the resources used by its internal communication channel.
bool m_isInTransaction
Tells if there is a transaction in progress.
#define TERRAMOBILEPLUGINSDLLEXPORT
An exception class for the XML module.