26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_QUERYCAPABILITIES_H 27 #define __TERRALIB_DATAACCESS_INTERNAL_QUERYCAPABILITIES_H 30 #include "../../geometry/Enums.h" 31 #include "../Config.h" 60 bool supportsSQLDialect()
const;
62 void setSupportSQLDialect(
const bool& support);
64 bool supportsSpatialSQLDialect()
const;
66 void setSupportSpatialSQLDialect(
const bool& support);
68 bool supportsInsert()
const;
70 void setSupportInsert(
const bool& support);
72 bool supportsUpdate()
const;
74 void setSupportUpdate(
const bool& support);
76 bool supportsDelete()
const;
78 void setSupportDelete(
const bool& support);
80 bool supportsCreate()
const;
82 void setSupportCreate(
const bool& support);
84 bool supportsDrop()
const;
86 void setSupportDrop(
const bool& support);
88 bool supportsAlter()
const;
90 void setSupportAlter(
const bool& support);
92 bool supportsSelect()
const;
94 void setSupportSelect(
const bool& support);
96 bool supportsSelectInto()
const;
98 void setSupportSelectInto(
const bool& support);
102 const std::set<std::string>& getSpatialOperators()
const;
106 const std::set<std::string>& getSpatialTopologicOperators()
const;
110 const std::set<std::string>& getSpatialMetricOperators()
const;
114 const std::set<std::string>& getSpatialNewGeomOperators()
const;
118 const std::set<std::string>& getLogicalOperators()
const;
122 const std::set<std::string>& getComparsionOperators()
const;
126 const std::set<std::string>& getArithmeticOperators()
const;
130 const std::set<std::string>& getFunctions()
const;
134 const std::set<te::gm::GeomType>& getGeometryOperands()
const;
166 #endif // __TERRALIB_DATAACCESS_INTERNAL_QUERYCAPABILITIES_H GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
bool m_alter
A flag that indicates if the data source supports the ALTER command.
bool m_create
A flag that indicates if the data source supports the CREATE command.
queryCapabilities addLogicalOperator("and")
std::set< std::string > m_spatialMetricOperators
The names of spatial metric supported operators (area, lenght, etc).
std::set< te::gm::GeomType > m_geomOperands
The types of geometry supported operands.
bool m_drop
A flag that indicates if the data source supports the DROP command.
queryCapabilities addComparsionOperator("=")
bool m_update
A flag that indicates if the data source supports the UPDATE command.
bool m_delete
A flag that indicates if the data source supports the DELETE command.
queryCapabilities addSpatialOperator("st_boundary")
queryCapabilities addSpatialTopologicOperator("st_contains")
A class that informs the query support of a given data source.
bool m_selectInto
A flag that indicates if the data source supports the SELECT INTO command.
std::set< std::string > m_comparsionOperators
The names of comparsion supported operators.
std::set< std::string > m_functions
The names of supported functions.
queryCapabilities addFunction("upper")
std::set< std::string > m_spatialOperators
The names of other spatial supported operators.
dataTypeCapabilities setSupportAll()
bool m_insert
A flag that indicates if the data source supports the INSERT command.
bool m_spatialSQLDialect
A flag that indicates if the data source supports spatial Query API.
bool m_select
A flag that indicates if the data source supports the SELECT command.
std::set< std::string > m_spatialTopologicOperators
The names of topological supported operators (touches, crosses, etc).
bool m_sqlDialect
A flag that indicates if the data source supports Query API.
std::set< std::string > m_arithmeticOperators
The names of arithmetic supported operators.
std::set< std::string > m_logicalOperators
The names of logical supported operators.
std::set< std::string > m_spatialNewGeomOperators
The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc).
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
queryCapabilities addSpatialNewGeomOperator("st_centroid")
queryCapabilities addArithmeticOperator("+")
queryCapabilities addSpatialMetricOperator("st_area")