Go to the documentation of this file.
26 #ifndef __TERRALIB_TERRALIB4_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_TERRALIB4_INTERNAL_DATASOURCE_H
30 #include "../dataaccess/datasource/DataSource.h"
31 #include "../dataaccess/datasource/DataSourceCapabilities.h"
85 void create(
const std::string& dsInfo);
87 void drop(
const std::string& dsInfo);
89 bool exists(
const std::string& dsInfo);
103 #endif // __TERRALIB_TERRALIB4_INTERNAL_DATASOURCE_H
It represents the SQL query dialect accepted by a given data source.
void open()
It opens the data source and makes it ready for using.
std::vector<::terralib4::ThemeInfo > getTL4Themes()
std::vector< std::string > getTL4Tables()
static te::da::SQLDialect * sm_dialect
std::vector< std::string > getDataSourceNames(const std::string &dsInfo)
It gets the data source names available in a driver.
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
static te::da::DataSourceCapabilities sm_capabilities
TeTheme * getTL4Theme(const ::terralib4::ThemeInfo &theme)
std::unique_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.
bool isValid() const
It checks if the data source is valid (available for using).
std::vector< std::string > getTL4Layers()
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS,...
A class to store the proxy information that must be used to access data located in URIs.
DataSource(const std::string &connInfo)
void drop(const std::string &dsInfo)
It removes the data source with the connection information from a driver.
bool exists(const std::string &dsInfo)
Check the existence of a data source in a driver.
std::vector< std::string > getTL4Rasters()
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
#define TETERRALIB4EXPORT
You can use this macro in order to export/import classes and functions from this module.
An abstract class for data providers like a DBMS, Web Services or a regular file.
int getLayerSRID(const std::string &layerName)
std::vector< std::pair< std::string, std::string > > getTL4RasterFiles()
void close()
It closes the data source and clears all the resources used by its internal communication channel.
Proxy configuration file for TerraView (see terraview_config.h).
TeDatabase * getTerralib4Db()
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
~DataSource()
Virtual destructor.
DataSource(const te::core::URI &uri)
void create(const std::string &dsInfo)
It creates a new data source.