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