26 #ifndef __TERRALIB_STMEMORY_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_STMEMORY_INTERNAL_DATASOURCE_H
30 #include "../dataaccess/datasource/DataSource.h"
31 #include "../dataaccess/datasource/DataSourceCapabilities.h"
32 #include "../dataaccess/query/SQLDialect.h"
39 namespace te {
namespace da {
class DataSetType; } }
40 namespace te {
namespace dt {
class DateTimePeriod; } }
71 std::string getType()
const;
73 const std::map<std::string, std::string>& getConnectionInfo()
const;
75 void setConnectionInfo(
const std::map<std::string, std::string>& connInfo);
77 std::auto_ptr<te::da::DataSourceTransactor> getTransactor();
83 bool isOpened()
const;
123 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
126 bool connected =
false,
152 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
156 bool connected =
false,
182 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
186 bool connected =
false,
199 std::auto_ptr<te::dt::DateTimePeriod> getTemporalExtent(
const std::string& name);
203 void create(
const std::map<std::string, std::string>& dsInfo);
205 void drop(
const std::map<std::string, std::string>& dsInfo);
207 bool exists(
const std::map<std::string, std::string>& dsInfo);
209 std::vector<std::string> getDataSourceNames(
const std::map<std::string, std::string>& info);
211 std::vector<std::string> getEncodings(
const std::map<std::string, std::string>& dsInfo);
230 #endif // __TERRALIB_STMEMORY_INTERNAL_DATASOURCE_H
static const te::da::SQLDialect sm_dialect
A dummy dialect.
std::map< std::string, std::string > m_connInfo
DataSource information.
Implementation of a in-memory data set that contains spatiotemporal observations indexed by time and ...
bool m_isOpened
A flag to control the state of the data source.
An implementation of DataSourceTransactor class for the ST in-memory driver.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
SpatialRelation
Spatial relations between geometric objects.
AccessPolicy
Supported data access policies (can be used as bitfield).
#define TESTMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
It represents the SQL query dialect accepted by a given data source.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
std::auto_ptr< Transactor > m_transactor
A transactor.
TemporalRelation
Temporal relations between date and time (Source: Allen, 1991).
Implements a DataSource that contains In-Memory DataSets indexed by space and time.
TraverseType
A dataset can be traversed in two ways:
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
A class that models the description of a dataset.
std::size_t m_maxdatasets
The maximum number of datasets to be handled by the data source.
std::map< std::string, DataSet * > m_datasets
The set of datasets stored in memory.
bool m_deepCopy
If true each dataset is cloned in the getDataSet method.
An Envelope defines a 2D rectangular region.
static te::da::DataSourceCapabilities sm_capabilities
The Memory data source capabilities.
std::map< std::string, te::da::DataSetType * > m_schemas
The set of dataset schemas.