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"
49 std::string getType()
const;
51 const std::map<std::string, std::string>& getConnectionInfo()
const;
53 void setConnectionInfo(
const std::map<std::string, std::string>& connInfo);
55 std::auto_ptr<te::da::DataSourceTransactor> getTransactor();
61 bool isOpened()
const;
69 TeDatabase* getTerralib4Db();
71 std::vector<std::string> getTL4Layers();
73 std::vector<std::string> getTL4Tables();
75 std::vector<std::string> getTL4Rasters();
77 std::vector<std::pair<std::string, std::string> > getTL4RasterFiles();
79 std::vector<::terralib4::ThemeInfo> getTL4Themes();
81 TeTheme* getTL4Theme(const ::terralib4::ThemeInfo& theme);
83 int getLayerSRID(
const std::string & layerName);
87 void create(
const std::map<std::string, std::string>& dsInfo);
89 void drop(
const std::map<std::string, std::string>& dsInfo);
91 bool exists(
const std::map<std::string, std::string>& dsInfo);
93 std::vector<std::string> getDataSourceNames(
const std::map<std::string, std::string>& dsInfo);
95 std::vector<te::common::CharEncoding> getEncodings(
const std::map<std::string, std::string>& dsInfo);
108 #endif // __TERRALIB_TERRALIB4_INTERNAL_DATASOURCE_H
std::map< std::string, std::string > m_dbInfo
static te::da::SQLDialect * sm_dialect
It represents the SQL query dialect accepted by a given data source.
static te::da::DataSourceCapabilities sm_capabilities
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. ...
Configuration flags for the TerraLib 4 driver.
#define TETERRALIB4EXPORT
You can use this macro in order to export/import classes and functions from this module.