26 #ifndef __TERRALIB_POSTGIS_INTERNAL_DATASOURCE_H    27 #define __TERRALIB_POSTGIS_INTERNAL_DATASOURCE_H    30 #include "../dataaccess/datasource/DataSource.h"    31 #include "../dataaccess/datasource/DataSourceCapabilities.h"    37   namespace gm  { 
class GeometryProperty; }
    38   namespace rst { 
class RasterProperty; }
    67         std::string getType() 
const;
    69         const std::map<std::string, std::string>& getConnectionInfo() 
const;
    71         void setConnectionInfo(
const std::map<std::string, std::string>& connInfo);
    73         std::auto_ptr<te::da::DataSourceTransactor> getTransactor();
    79         bool isTimeAnInteger();
    81         void setTimeAsInteger(
bool timeIsInteger);
   104         bool isOpened() 
const;
   106         bool isValid() 
const;
   119         unsigned int getGeomTypeId() 
const;
   128         unsigned int getRasterTypeId() 
const;
   137         const std::string& getCurrentSchema() 
const;
   159         void create(
const std::map<std::string, std::string>& dsInfo);
   161         void drop(
const std::map<std::string, std::string>& dsInfo);
   163         bool exists(
const std::map<std::string, std::string>& dsInfo);
   165         std::vector<std::string> getDataSourceNames(
const std::map<std::string, std::string>& dsInfo);
   167         std::vector<te::common::CharEncoding> getEncodings(
const std::map<std::string, std::string>& dsInfo);
   186 #endif  // __TERRALIB_POSTGIS_INTERNAL_DATASOURCE_H ConnectionPool * m_pool
The connection pool. 
 
CharEncoding
Supported charsets (character encoding). 
 
It represents the SQL query dialect accepted by a given data source. 
 
std::map< std::string, std::string > m_connInfo
Connection information. 
 
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
 
A class that implements a connection to a PostgreSQL database. 
 
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
 
#define TEPGISEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
unsigned int m_rasterTypeOid
PostGIS Raster type OID. 
 
Configuration flags for the PostGIS Driver Implementation of TerraLib. 
 
static te::da::SQLDialect * sm_dialect
PostGIS SQL dialect. 
 
te::common::CharEncoding m_encoding
The datasource char encoding. 
 
bool m_timeIsInteger
It indicates if the postgis stores, internally, time and timestamp as an integer. ...
 
std::string m_currentSchema
The default schema used when no one is provided. 
 
This class implements a connection pool for the PostGIS driver. 
 
static te::da::DataSourceCapabilities sm_capabilities
PostGIS capabilities. 
 
unsigned int m_geomTypeOid
PostGIS Geometry type OID.