A class that informs the query support of a given data source. More...
#include <QueryCapabilities.h>
Public Member Functions | |
| void | addArithmeticOperator (const std::string &op) | 
| void | addComparsionOperator (const std::string &op) | 
| void | addFunction (const std::string &op) | 
| void | addGeometryOperand (const te::gm::GeomType &type) | 
| void | addLogicalOperator (const std::string &op) | 
| void | addSpatialMetricOperator (const std::string &op) | 
| void | addSpatialNewGeomOperator (const std::string &op) | 
| void | addSpatialOperator (const std::string &op) | 
| void | addSpatialTopologicOperator (const std::string &op) | 
| const std::set< std::string > & | getArithmeticOperators () const | 
| const std::set< std::string > & | getComparsionOperators () const | 
| const std::set< std::string > & | getFunctions () const | 
| const std::set < te::gm::GeomType > &  | getGeometryOperands () const | 
| const std::set< std::string > & | getLogicalOperators () const | 
| const std::set< std::string > & | getSpatialMetricOperators () const | 
| const std::set< std::string > & | getSpatialNewGeomOperators () const | 
| const std::set< std::string > & | getSpatialOperators () const | 
| const std::set< std::string > & | getSpatialTopologicOperators () const | 
| QueryCapabilities () | |
| Constructor.  More... | |
| void | setSupportAll () | 
| void | setSupportAlter (const bool &support) | 
| void | setSupportCreate (const bool &support) | 
| void | setSupportDelete (const bool &support) | 
| void | setSupportDrop (const bool &support) | 
| void | setSupportInsert (const bool &support) | 
| void | setSupportSelect (const bool &support) | 
| void | setSupportSelectInto (const bool &support) | 
| void | setSupportSpatialSQLDialect (const bool &support) | 
| void | setSupportSQLDialect (const bool &support) | 
| void | setSupportUpdate (const bool &support) | 
| bool | supportsAlter () const | 
| bool | supportsCreate () const | 
| bool | supportsDelete () const | 
| bool | supportsDrop () const | 
| bool | supportsInsert () const | 
| bool | supportsSelect () const | 
| bool | supportsSelectInto () const | 
| bool | supportsSpatialSQLDialect () const | 
| bool | supportsSQLDialect () const | 
| bool | supportsUpdate () const | 
| ~QueryCapabilities () | |
| Destructor.  More... | |
Private Attributes | |
| bool | m_alter | 
| A flag that indicates if the data source supports the ALTER command.  More... | |
| std::set< std::string > | m_arithmeticOperators | 
| The names of arithmetic supported operators.  More... | |
| std::set< std::string > | m_comparsionOperators | 
| The names of comparsion supported operators.  More... | |
| bool | m_create | 
| A flag that indicates if the data source supports the CREATE command.  More... | |
| bool | m_delete | 
| A flag that indicates if the data source supports the DELETE command.  More... | |
| bool | m_drop | 
| A flag that indicates if the data source supports the DROP command.  More... | |
| std::set< std::string > | m_functions | 
| The names of supported functions.  More... | |
| std::set< te::gm::GeomType > | m_geomOperands | 
| The types of geometry supported operands.  More... | |
| bool | m_insert | 
| A flag that indicates if the data source supports the INSERT command.  More... | |
| std::set< std::string > | m_logicalOperators | 
| The names of logical supported operators.  More... | |
| bool | m_select | 
| A flag that indicates if the data source supports the SELECT command.  More... | |
| bool | m_selectInto | 
| A flag that indicates if the data source supports the SELECT INTO command.  More... | |
| std::set< std::string > | m_spatialMetricOperators | 
| The names of spatial metric supported operators (area, lenght, etc).  More... | |
| std::set< std::string > | m_spatialNewGeomOperators | 
| The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc).  More... | |
| std::set< std::string > | m_spatialOperators | 
| The names of other spatial supported operators.  More... | |
| bool | m_spatialSQLDialect | 
| A flag that indicates if the data source supports spatial Query API.  More... | |
| std::set< std::string > | m_spatialTopologicOperators | 
| The names of topological supported operators (touches, crosses, etc).  More... | |
| bool | m_sqlDialect | 
| A flag that indicates if the data source supports Query API.  More... | |
| bool | m_update | 
| A flag that indicates if the data source supports the UPDATE command.  More... | |
A class that informs the query support of a given data source.
Definition at line 48 of file QueryCapabilities.h.
| te::da::QueryCapabilities::QueryCapabilities | ( | ) | 
Constructor.
Definition at line 29 of file QueryCapabilities.cpp.
| te::da::QueryCapabilities::~QueryCapabilities | ( | ) | 
Destructor.
Definition at line 43 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addArithmeticOperator | ( | const std::string & | op | ) | 
Definition at line 226 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addComparsionOperator | ( | const std::string & | op | ) | 
Definition at line 216 of file QueryCapabilities.cpp.
Referenced by GetQueryCapabilities().
| void te::da::QueryCapabilities::addFunction | ( | const std::string & | op | ) | 
Definition at line 236 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addGeometryOperand | ( | const te::gm::GeomType & | type | ) | 
Definition at line 246 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addLogicalOperator | ( | const std::string & | op | ) | 
Definition at line 206 of file QueryCapabilities.cpp.
Referenced by GetQueryCapabilities().
| void te::da::QueryCapabilities::addSpatialMetricOperator | ( | const std::string & | op | ) | 
Definition at line 186 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addSpatialNewGeomOperator | ( | const std::string & | op | ) | 
Definition at line 196 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addSpatialOperator | ( | const std::string & | op | ) | 
Definition at line 166 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::addSpatialTopologicOperator | ( | const std::string & | op | ) | 
Definition at line 176 of file QueryCapabilities.cpp.
Referenced by GetQueryCapabilities().
| const std::set< std::string > & te::da::QueryCapabilities::getArithmeticOperators | ( | ) | const | 
Definition at line 221 of file QueryCapabilities.cpp.
Referenced by te::qt::widgets::QueryLayerBuilderWizard::getQueryCapabilities(), and te::qt::widgets::QueryDialog::onInputLayerActivated().
| const std::set< std::string > & te::da::QueryCapabilities::getComparsionOperators | ( | ) | const | 
Definition at line 211 of file QueryCapabilities.cpp.
Referenced by te::qt::widgets::QueryLayerBuilderWizard::getQueryCapabilities(), and te::qt::widgets::QueryDialog::onInputLayerActivated().
| const std::set< std::string > & te::da::QueryCapabilities::getFunctions | ( | ) | const | 
Definition at line 231 of file QueryCapabilities.cpp.
| const std::set< te::gm::GeomType > & te::da::QueryCapabilities::getGeometryOperands | ( | ) | const | 
Definition at line 241 of file QueryCapabilities.cpp.
| const std::set< std::string > & te::da::QueryCapabilities::getLogicalOperators | ( | ) | const | 
Definition at line 201 of file QueryCapabilities.cpp.
Referenced by te::qt::widgets::QueryLayerBuilderWizard::getQueryCapabilities(), and te::qt::widgets::QueryDialog::onInputLayerActivated().
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialMetricOperators | ( | ) | const | 
Definition at line 181 of file QueryCapabilities.cpp.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialNewGeomOperators | ( | ) | const | 
Definition at line 191 of file QueryCapabilities.cpp.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialOperators | ( | ) | const | 
Definition at line 161 of file QueryCapabilities.cpp.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialTopologicOperators | ( | ) | const | 
| void te::da::QueryCapabilities::setSupportAll | ( | ) | 
Definition at line 147 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportAlter | ( | const bool & | support | ) | 
Definition at line 122 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportCreate | ( | const bool & | support | ) | 
Definition at line 102 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportDelete | ( | const bool & | support | ) | 
Definition at line 92 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportDrop | ( | const bool & | support | ) | 
Definition at line 112 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportInsert | ( | const bool & | support | ) | 
Definition at line 72 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportSelect | ( | const bool & | support | ) | 
Definition at line 132 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportSelectInto | ( | const bool & | support | ) | 
Definition at line 142 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportSpatialSQLDialect | ( | const bool & | support | ) | 
Definition at line 62 of file QueryCapabilities.cpp.
| void te::da::QueryCapabilities::setSupportSQLDialect | ( | const bool & | support | ) | 
Definition at line 52 of file QueryCapabilities.cpp.
Referenced by te::serialize::xml::Read().
| void te::da::QueryCapabilities::setSupportUpdate | ( | const bool & | support | ) | 
Definition at line 82 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsAlter | ( | ) | const | 
Definition at line 117 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsCreate | ( | ) | const | 
Definition at line 97 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsDelete | ( | ) | const | 
Definition at line 87 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsDrop | ( | ) | const | 
Definition at line 107 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsInsert | ( | ) | const | 
Definition at line 67 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsSelect | ( | ) | const | 
Definition at line 127 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsSelectInto | ( | ) | const | 
Definition at line 137 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsSpatialSQLDialect | ( | ) | const | 
Definition at line 57 of file QueryCapabilities.cpp.
Referenced by te::vp::Aggregation(), te::vp::Buffer(), and te::vp::Intersection().
| bool te::da::QueryCapabilities::supportsSQLDialect | ( | ) | const | 
Definition at line 47 of file QueryCapabilities.cpp.
| bool te::da::QueryCapabilities::supportsUpdate | ( | ) | const | 
Definition at line 77 of file QueryCapabilities.cpp.
      
  | 
  private | 
A flag that indicates if the data source supports the ALTER command.
Definition at line 147 of file QueryCapabilities.h.
      
  | 
  private | 
The names of arithmetic supported operators.
Definition at line 158 of file QueryCapabilities.h.
      
  | 
  private | 
The names of comparsion supported operators.
Definition at line 157 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the CREATE command.
Definition at line 145 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the DELETE command.
Definition at line 144 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the DROP command.
Definition at line 146 of file QueryCapabilities.h.
      
  | 
  private | 
The names of supported functions.
Definition at line 159 of file QueryCapabilities.h.
      
  | 
  private | 
The types of geometry supported operands.
Definition at line 160 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the INSERT command.
Definition at line 142 of file QueryCapabilities.h.
      
  | 
  private | 
The names of logical supported operators.
Definition at line 156 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the SELECT command.
Definition at line 148 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the SELECT INTO command.
Definition at line 149 of file QueryCapabilities.h.
      
  | 
  private | 
The names of spatial metric supported operators (area, lenght, etc).
Definition at line 152 of file QueryCapabilities.h.
      
  | 
  private | 
The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc).
Definition at line 153 of file QueryCapabilities.h.
      
  | 
  private | 
The names of other spatial supported operators.
Definition at line 154 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports spatial Query API.
Definition at line 141 of file QueryCapabilities.h.
      
  | 
  private | 
The names of topological supported operators (touches, crosses, etc).
Definition at line 151 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports Query API.
Definition at line 140 of file QueryCapabilities.h.
      
  | 
  private | 
A flag that indicates if the data source supports the UPDATE command.
Definition at line 143 of file QueryCapabilities.h.