27 #include "../common/StringUtils.h" 
   28 #include "../geometry/Envelope.h" 
   29 #include "../dataaccess/query/DataSetName.h" 
   30 #include "../dataaccess/query/Having.h" 
   31 #include "../dataaccess/query/LiteralEnvelope.h" 
   32 #include "../dataaccess/query/PropertyName.h" 
   33 #include "../dataaccess/query/Select.h" 
   34 #include "../dataaccess/query/Where.h" 
   50   m_sql += 
"\'" + visited.
getName() + 
"\'";
 
   62   std::vector<std::string> values;
 
   65   if(values.size() == 1)
 
   68     m_sql += values[values.size() - 1];
 
   73   m_sql += 
"SELECT FID, ";
 
A class that models the name of a dataset used in a From clause. 
 
const Having * getHaving() const 
It returns the list of expressions used to eliminate group row that doesn't satisfy the condition...
 
A Select models a query to be used when retrieving data from a DataSource. 
 
const std::string & getName() const 
It returns the property name. 
 
void visit(const te::da::DataSetName &visited)
 
const std::string & getName() const 
It returns the dataset name. 
 
A class that models the name of any property of an object. 
 
const From * getFrom() const 
It returns the list of source information to be used by the query. 
 
const Distinct * getDistinct() const 
It returns the Distinct modifier. 
 
It represents the SQL query dialect accepted by a given data source. 
 
virtual void visit(const Expression &visited)
 
te::gm::Envelope * getMBR()
 
A class that models a literal for Envelope values. 
 
Expression * getExp() const 
 
void Tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
It tokenizes a given string with a delimiter of your own choice. 
 
boost::ptr_vector< Expression > Distinct
A class that models a Distinct clause on a query. 
 
const GroupBy * getGroupBy() const 
It returns the list of expressions used to condense the result set. 
 
Expression * getExp() const 
 
const Fields * getFields() const 
It returns the list of output expressions used to form the result set. 
 
virtual ReturnType accept(VisitorType &guest) const =0
It call the visit method from the guest object. 
 
const OrderBy * getOrderBy() const 
It returns the list of expressions used to sort the output result. 
 
void visitDistinct(const te::da::Distinct &visited)
 
Where * getWhere() const 
It returns the filter condition. 
 
SQLVisitor(const te::da::SQLDialect &dialect, std::string &sql)
Default constructor. 
 
A visitor for building an SQL statement using OGR dialect. 
 
An Envelope defines a 2D rectangular region. 
 
te::gm::Envelope * getValue() const 
It returns the associated envelope value.