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; } }
74 std::string getType()
const;
76 std::unique_ptr<te::da::DataSourceTransactor> getTransactor();
82 bool isOpened()
const;
122 std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
125 bool connected =
false,
151 std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
155 bool connected =
false,
181 std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
185 bool connected =
false,
198 std::unique_ptr<te::dt::DateTimePeriod> getTemporalExtent(
const std::string& name);
202 void create(
const std::string& connInfo);
204 void drop(
const std::string& connInfo);
206 bool exists(
const std::string& connInfo);
208 std::vector<std::string> getDataSourceNames(
const std::string& connInfo);
226 #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.
std::unique_ptr< Transactor > m_transactor
A transactor.
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.
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.
A class to store the proxy information that must be used to access data located in URIs...
Implementation of a in-memory data set that contains spatiotemporal observations indexed by time and ...
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.