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 | ( | ) |
|
default |
Destructor.
Referenced by QueryCapabilities().
| void te::da::QueryCapabilities::addArithmeticOperator | ( | const std::string & | op | ) |
Definition at line 224 of file QueryCapabilities.cpp.
References m_arithmeticOperators.
| void te::da::QueryCapabilities::addComparsionOperator | ( | const std::string & | op | ) |
Definition at line 214 of file QueryCapabilities.cpp.
References m_comparsionOperators.
Referenced by GetQueryCapabilities().
| void te::da::QueryCapabilities::addFunction | ( | const std::string & | op | ) |
Definition at line 234 of file QueryCapabilities.cpp.
References m_functions.
| void te::da::QueryCapabilities::addGeometryOperand | ( | const te::gm::GeomType & | type | ) |
Definition at line 244 of file QueryCapabilities.cpp.
References m_geomOperands.
| void te::da::QueryCapabilities::addLogicalOperator | ( | const std::string & | op | ) |
Definition at line 204 of file QueryCapabilities.cpp.
References m_logicalOperators.
Referenced by GetQueryCapabilities().
| void te::da::QueryCapabilities::addSpatialMetricOperator | ( | const std::string & | op | ) |
Definition at line 184 of file QueryCapabilities.cpp.
References m_spatialMetricOperators.
| void te::da::QueryCapabilities::addSpatialNewGeomOperator | ( | const std::string & | op | ) |
Definition at line 194 of file QueryCapabilities.cpp.
References m_spatialNewGeomOperators.
| void te::da::QueryCapabilities::addSpatialOperator | ( | const std::string & | op | ) |
Definition at line 164 of file QueryCapabilities.cpp.
References m_spatialOperators.
| void te::da::QueryCapabilities::addSpatialTopologicOperator | ( | const std::string & | op | ) |
Definition at line 174 of file QueryCapabilities.cpp.
References m_spatialTopologicOperators.
Referenced by GetQueryCapabilities().
| const std::set< std::string > & te::da::QueryCapabilities::getArithmeticOperators | ( | ) | const |
Definition at line 219 of file QueryCapabilities.cpp.
References m_arithmeticOperators.
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 209 of file QueryCapabilities.cpp.
References m_comparsionOperators.
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 229 of file QueryCapabilities.cpp.
References m_functions.
| const std::set< te::gm::GeomType > & te::da::QueryCapabilities::getGeometryOperands | ( | ) | const |
Definition at line 239 of file QueryCapabilities.cpp.
References m_geomOperands.
| const std::set< std::string > & te::da::QueryCapabilities::getLogicalOperators | ( | ) | const |
Definition at line 199 of file QueryCapabilities.cpp.
References m_logicalOperators.
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 179 of file QueryCapabilities.cpp.
References m_spatialMetricOperators.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialNewGeomOperators | ( | ) | const |
Definition at line 189 of file QueryCapabilities.cpp.
References m_spatialNewGeomOperators.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialOperators | ( | ) | const |
Definition at line 159 of file QueryCapabilities.cpp.
References m_spatialOperators.
| const std::set< std::string > & te::da::QueryCapabilities::getSpatialTopologicOperators | ( | ) | const |
Definition at line 169 of file QueryCapabilities.cpp.
References m_spatialTopologicOperators.
Referenced by te::map::QueryLayer::getData(), te::qt::widgets::QueryLayerBuilderWizard::getQueryCapabilities(), te::qt::widgets::QueryDialog::onInputLayerActivated(), and te::da::SpatialQueryProcessor::supportsSpatialTopologicOperatos().
| void te::da::QueryCapabilities::setSupportAll | ( | ) |
Definition at line 145 of file QueryCapabilities.cpp.
References m_alter, m_create, m_delete, m_drop, m_insert, m_select, m_selectInto, m_spatialSQLDialect, m_sqlDialect, and m_update.
| void te::da::QueryCapabilities::setSupportAlter | ( | const bool & | support | ) |
Definition at line 120 of file QueryCapabilities.cpp.
References m_alter.
| void te::da::QueryCapabilities::setSupportCreate | ( | const bool & | support | ) |
Definition at line 100 of file QueryCapabilities.cpp.
References m_create.
| void te::da::QueryCapabilities::setSupportDelete | ( | const bool & | support | ) |
Definition at line 90 of file QueryCapabilities.cpp.
References m_delete.
| void te::da::QueryCapabilities::setSupportDrop | ( | const bool & | support | ) |
Definition at line 110 of file QueryCapabilities.cpp.
References m_drop.
| void te::da::QueryCapabilities::setSupportInsert | ( | const bool & | support | ) |
Definition at line 70 of file QueryCapabilities.cpp.
References m_insert.
| void te::da::QueryCapabilities::setSupportSelect | ( | const bool & | support | ) |
Definition at line 130 of file QueryCapabilities.cpp.
References m_select.
| void te::da::QueryCapabilities::setSupportSelectInto | ( | const bool & | support | ) |
Definition at line 140 of file QueryCapabilities.cpp.
References m_selectInto.
| void te::da::QueryCapabilities::setSupportSpatialSQLDialect | ( | const bool & | support | ) |
Definition at line 60 of file QueryCapabilities.cpp.
References m_spatialSQLDialect.
| void te::da::QueryCapabilities::setSupportSQLDialect | ( | const bool & | support | ) |
Definition at line 50 of file QueryCapabilities.cpp.
References m_sqlDialect.
Referenced by te::serialize::xml::Read().
| void te::da::QueryCapabilities::setSupportUpdate | ( | const bool & | support | ) |
Definition at line 80 of file QueryCapabilities.cpp.
References m_update.
| bool te::da::QueryCapabilities::supportsAlter | ( | ) | const |
Definition at line 115 of file QueryCapabilities.cpp.
References m_alter.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsCreate | ( | ) | const |
Definition at line 95 of file QueryCapabilities.cpp.
References m_create.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsDelete | ( | ) | const |
Definition at line 85 of file QueryCapabilities.cpp.
References m_delete.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsDrop | ( | ) | const |
Definition at line 105 of file QueryCapabilities.cpp.
References m_drop.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsInsert | ( | ) | const |
Definition at line 65 of file QueryCapabilities.cpp.
References m_insert.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsSelect | ( | ) | const |
Definition at line 125 of file QueryCapabilities.cpp.
References m_select.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsSelectInto | ( | ) | const |
Definition at line 135 of file QueryCapabilities.cpp.
References m_selectInto.
Referenced by PrintDataSourceCapabilities(), and TsDataSourceTransactor::tcQueryByString().
| bool te::da::QueryCapabilities::supportsSpatialSQLDialect | ( | ) | const |
Definition at line 55 of file QueryCapabilities.cpp.
References m_spatialSQLDialect.
Referenced by te::vp::MakeGeometryValid::makeValid(), te::vp::PolygonToLineDialog::onOkPushButtonClicked(), te::vp::LineToPolygonDialog::onOkPushButtonClicked(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::vp::GeometricOpDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::vp::DifferenceDialog::onOkPushButtonClicked(), and te::vp::DissolveDialog::onOkPushButtonClicked().
| bool te::da::QueryCapabilities::supportsSQLDialect | ( | ) | const |
Definition at line 45 of file QueryCapabilities.cpp.
References m_sqlDialect.
Referenced by PrintDataSourceCapabilities().
| bool te::da::QueryCapabilities::supportsUpdate | ( | ) | const |
Definition at line 75 of file QueryCapabilities.cpp.
References m_update.
Referenced by PrintDataSourceCapabilities().
|
private |
A flag that indicates if the data source supports the ALTER command.
Definition at line 147 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportAlter(), and supportsAlter().
|
private |
The names of arithmetic supported operators.
Definition at line 158 of file QueryCapabilities.h.
Referenced by addArithmeticOperator(), and getArithmeticOperators().
|
private |
The names of comparsion supported operators.
Definition at line 157 of file QueryCapabilities.h.
Referenced by addComparsionOperator(), and getComparsionOperators().
|
private |
A flag that indicates if the data source supports the CREATE command.
Definition at line 145 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportCreate(), and supportsCreate().
|
private |
A flag that indicates if the data source supports the DELETE command.
Definition at line 144 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportDelete(), and supportsDelete().
|
private |
A flag that indicates if the data source supports the DROP command.
Definition at line 146 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportDrop(), and supportsDrop().
|
private |
The names of supported functions.
Definition at line 159 of file QueryCapabilities.h.
Referenced by addFunction(), and getFunctions().
|
private |
The types of geometry supported operands.
Definition at line 160 of file QueryCapabilities.h.
Referenced by addGeometryOperand(), and getGeometryOperands().
|
private |
A flag that indicates if the data source supports the INSERT command.
Definition at line 142 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportInsert(), and supportsInsert().
|
private |
The names of logical supported operators.
Definition at line 156 of file QueryCapabilities.h.
Referenced by addLogicalOperator(), and getLogicalOperators().
|
private |
A flag that indicates if the data source supports the SELECT command.
Definition at line 148 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportSelect(), and supportsSelect().
|
private |
A flag that indicates if the data source supports the SELECT INTO command.
Definition at line 149 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportSelectInto(), and supportsSelectInto().
|
private |
The names of spatial metric supported operators (area, lenght, etc).
Definition at line 152 of file QueryCapabilities.h.
Referenced by addSpatialMetricOperator(), and getSpatialMetricOperators().
|
private |
The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc).
Definition at line 153 of file QueryCapabilities.h.
Referenced by addSpatialNewGeomOperator(), and getSpatialNewGeomOperators().
|
private |
The names of other spatial supported operators.
Definition at line 154 of file QueryCapabilities.h.
Referenced by addSpatialOperator(), and getSpatialOperators().
|
private |
A flag that indicates if the data source supports spatial Query API.
Definition at line 141 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportSpatialSQLDialect(), and supportsSpatialSQLDialect().
|
private |
The names of topological supported operators (touches, crosses, etc).
Definition at line 151 of file QueryCapabilities.h.
Referenced by addSpatialTopologicOperator(), and getSpatialTopologicOperators().
|
private |
A flag that indicates if the data source supports Query API.
Definition at line 140 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportSQLDialect(), and supportsSQLDialect().
|
private |
A flag that indicates if the data source supports the UPDATE command.
Definition at line 143 of file QueryCapabilities.h.
Referenced by setSupportAll(), setSupportUpdate(), and supportsUpdate().