te::da::QueryCapabilities Class Reference

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::GeomTypem_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...
 

Detailed Description

A class that informs the query support of a given data source.

Definition at line 48 of file QueryCapabilities.h.

Constructor & Destructor Documentation

te::da::QueryCapabilities::QueryCapabilities ( )

Constructor.

te::da::QueryCapabilities::~QueryCapabilities ( )

Destructor.

Member Function Documentation

void te::da::QueryCapabilities::addArithmeticOperator ( const std::string &  op)
void te::da::QueryCapabilities::addComparsionOperator ( const std::string &  op)
void te::da::QueryCapabilities::addFunction ( const std::string &  op)
void te::da::QueryCapabilities::addGeometryOperand ( const te::gm::GeomType type)
void te::da::QueryCapabilities::addLogicalOperator ( const std::string &  op)
void te::da::QueryCapabilities::addSpatialMetricOperator ( const std::string &  op)
void te::da::QueryCapabilities::addSpatialNewGeomOperator ( const std::string &  op)
void te::da::QueryCapabilities::addSpatialOperator ( const std::string &  op)
void te::da::QueryCapabilities::addSpatialTopologicOperator ( const std::string &  op)
const std::set<std::string>& te::da::QueryCapabilities::getArithmeticOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getComparsionOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getFunctions ( ) const
const std::set<te::gm::GeomType>& te::da::QueryCapabilities::getGeometryOperands ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getLogicalOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getSpatialMetricOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getSpatialNewGeomOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getSpatialOperators ( ) const
const std::set<std::string>& te::da::QueryCapabilities::getSpatialTopologicOperators ( ) const
void te::da::QueryCapabilities::setSupportAll ( )
void te::da::QueryCapabilities::setSupportAlter ( const bool &  support)
void te::da::QueryCapabilities::setSupportCreate ( const bool &  support)
void te::da::QueryCapabilities::setSupportDelete ( const bool &  support)
void te::da::QueryCapabilities::setSupportDrop ( const bool &  support)
void te::da::QueryCapabilities::setSupportInsert ( const bool &  support)
void te::da::QueryCapabilities::setSupportSelect ( const bool &  support)
void te::da::QueryCapabilities::setSupportSelectInto ( const bool &  support)
void te::da::QueryCapabilities::setSupportSpatialSQLDialect ( const bool &  support)
void te::da::QueryCapabilities::setSupportSQLDialect ( const bool &  support)
void te::da::QueryCapabilities::setSupportUpdate ( const bool &  support)
bool te::da::QueryCapabilities::supportsAlter ( ) const
bool te::da::QueryCapabilities::supportsCreate ( ) const
bool te::da::QueryCapabilities::supportsDelete ( ) const
bool te::da::QueryCapabilities::supportsDrop ( ) const
bool te::da::QueryCapabilities::supportsInsert ( ) const
bool te::da::QueryCapabilities::supportsSelect ( ) const
bool te::da::QueryCapabilities::supportsSelectInto ( ) const
bool te::da::QueryCapabilities::supportsSpatialSQLDialect ( ) const
bool te::da::QueryCapabilities::supportsSQLDialect ( ) const
bool te::da::QueryCapabilities::supportsUpdate ( ) const

Member Data Documentation

bool te::da::QueryCapabilities::m_alter
private

A flag that indicates if the data source supports the ALTER command.

Definition at line 147 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_arithmeticOperators
private

The names of arithmetic supported operators.

Definition at line 158 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_comparsionOperators
private

The names of comparsion supported operators.

Definition at line 157 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_create
private

A flag that indicates if the data source supports the CREATE command.

Definition at line 145 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_delete
private

A flag that indicates if the data source supports the DELETE command.

Definition at line 144 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_drop
private

A flag that indicates if the data source supports the DROP command.

Definition at line 146 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_functions
private

The names of supported functions.

Definition at line 159 of file QueryCapabilities.h.

std::set<te::gm::GeomType> te::da::QueryCapabilities::m_geomOperands
private

The types of geometry supported operands.

Definition at line 160 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_insert
private

A flag that indicates if the data source supports the INSERT command.

Definition at line 142 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_logicalOperators
private

The names of logical supported operators.

Definition at line 156 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_select
private

A flag that indicates if the data source supports the SELECT command.

Definition at line 148 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_selectInto
private

A flag that indicates if the data source supports the SELECT INTO command.

Definition at line 149 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_spatialMetricOperators
private

The names of spatial metric supported operators (area, lenght, etc).

Definition at line 152 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_spatialNewGeomOperators
private

The names of spatial supported operators that generate new geometries (centroid, buffer, union, intersection,etc).

Definition at line 153 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_spatialOperators
private

The names of other spatial supported operators.

Definition at line 154 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_spatialSQLDialect
private

A flag that indicates if the data source supports spatial Query API.

Definition at line 141 of file QueryCapabilities.h.

std::set<std::string> te::da::QueryCapabilities::m_spatialTopologicOperators
private

The names of topological supported operators (touches, crosses, etc).

Definition at line 151 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_sqlDialect
private

A flag that indicates if the data source supports Query API.

Definition at line 140 of file QueryCapabilities.h.

bool te::da::QueryCapabilities::m_update
private

A flag that indicates if the data source supports the UPDATE command.

Definition at line 143 of file QueryCapabilities.h.


The documentation for this class was generated from the following file: