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<te::common::CharEncoding> getEncodings(
const std::map<std::string, std::string>& dsInfo);
230 #endif // __TERRALIB_STMEMORY_INTERNAL_DATASOURCE_H
bool m_deepCopy
If true each dataset is cloned in the getDataSet method.
A class that models the description of a dataset.
Implements a DataSource that contains In-Memory DataSets indexed by space and time.
TemporalRelation
Temporal relations between date and time (Source: Allen, 1991).
It represents the SQL query dialect accepted by a given data source.
SpatialRelation
Spatial relations between geometric objects.
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. ...
std::map< std::string, te::da::DataSetType * > m_schemas
The set of dataset schemas.
bool m_isOpened
A flag to control the state of the data source.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
static te::da::DataSourceCapabilities sm_capabilities
The Memory data source capabilities.
#define TESTMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::map< std::string, std::string > m_connInfo
DataSource information.
An Envelope defines a 2D rectangular region.
std::map< std::string, DataSet * > m_datasets
The set of datasets stored in memory.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An implementation of DataSourceTransactor class for the ST in-memory driver.
Implementation of a in-memory data set that contains spatiotemporal observations indexed by time and ...
std::auto_ptr< Transactor > m_transactor
A transactor.
static const te::da::SQLDialect sm_dialect
A dummy dialect.
std::size_t m_maxdatasets
The maximum number of datasets to be handled by the data source.