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 
std::set< std::string > m_spatialNewGeomOperators
The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc). 
 
queryCapabilities addComparsionOperator("=")
 
bool m_sqlDialect
A flag that indicates if the data source supports Query API. 
 
bool m_insert
A flag that indicates if the data source supports the INSERT command. 
 
std::set< std::string > m_spatialTopologicOperators
The names of topological supported operators (touches, crosses, etc). 
 
queryCapabilities addFunction("upper")
 
bool m_selectInto
A flag that indicates if the data source supports the SELECT INTO command. 
 
bool m_delete
A flag that indicates if the data source supports the DELETE command. 
 
std::set< std::string > m_arithmeticOperators
The names of arithmetic supported operators. 
 
bool m_drop
A flag that indicates if the data source supports the DROP command. 
 
queryCapabilities addSpatialTopologicOperator("st_contains")
 
queryCapabilities addLogicalOperator("and")
 
std::set< std::string > m_spatialOperators
The names of other spatial supported operators. 
 
bool m_update
A flag that indicates if the data source supports the UPDATE command. 
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
bool m_alter
A flag that indicates if the data source supports the ALTER command. 
 
queryCapabilities addSpatialOperator("st_boundary")
 
std::set< te::gm::GeomType > m_geomOperands
The types of geometry supported operands. 
 
queryCapabilities addSpatialNewGeomOperator("st_centroid")
 
bool m_create
A flag that indicates if the data source supports the CREATE command. 
 
queryCapabilities addSpatialMetricOperator("st_area")
 
A class that informs the query support of a given data source. 
 
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code. 
 
std::set< std::string > m_logicalOperators
The names of logical supported operators. 
 
bool m_select
A flag that indicates if the data source supports the SELECT command. 
 
bool m_spatialSQLDialect
A flag that indicates if the data source supports spatial Query API. 
 
std::set< std::string > m_functions
The names of supported functions. 
 
dataTypeCapabilities setSupportAll()
 
queryCapabilities addArithmeticOperator("+")
 
std::set< std::string > m_comparsionOperators
The names of comparsion supported operators. 
 
std::set< std::string > m_spatialMetricOperators
The names of spatial metric supported operators (area, lenght, etc).