Go to the documentation of this file.
   26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_LIKE_H 
   27 #define __TERRALIB_DATAACCESS_INTERNAL_LIKE_H 
   55              const std::string& pattern,
 
   56              const std::string& wildCard = 
"%",
 
   57              const std::string& singleChar = 
"_",
 
   58              const std::string& escapeChar = 
"\\");
 
   62              const std::string& pattern,
 
   63              const std::string& wildCard = 
"%",
 
   64              const std::string& singleChar = 
"_",
 
   65              const std::string& escapeChar = 
"\\");
 
  159 #endif  // __TERRALIB_DATAACCESS_INTERNAL_LIKE_H 
  
 
TE_DEFINE_VISITABLE Like(Expression *str, const std::string &pattern, const std::string &wildCard="%", const std::string &singleChar="_", const std::string &escapeChar="\\")
Constructor.
 
It is intended to encode a character string comparison operator with pattern matching.
 
void setPattern(const std::string &p)
It sets the pattern to be used in the comparison.
 
std::string m_wildCard
The wild card character matches zero or more characters.
 
Expression * clone() const
It creates a new copy of this expression.
 
Expression * getString() const
It returns the string expression to be compared with the like operator.
 
Symbology Encoding functions.
 
std::string m_escapeChar
The escape char character is used to escape the meaning of the wild card, single char and escape char...
 
const std::string & getEscapeChar() const
It returns the escape character.
 
A class that models a Function expression.
 
const std::string & getSingleChar() const
It returns the single wild character.
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
 
This class models a string Literal value.
 
This is an abstract class that models a query expression.
 
#define TE_DEFINE_VISITABLE
 
Like(const Like &rhs)
Copy constructor.
 
void setString(Expression *str)
It sets the string expression to be compared with the like operator.
 
const std::string & getWildCard() const
It returns the wild character.
 
void setEscapeChar(const std::string &e)
It sets the escape character.
 
te::da::LiteralString * getPattern() const
It returns the pattern used in the comparison.
 
Like(const Expression &str, const std::string &pattern, const std::string &wildCard="%", const std::string &singleChar="_", const std::string &escapeChar="\\")
Constructor.
 
Like & operator=(const Like &rhs)
 
void setWildCard(const std::string &w)
It sets the wild character.
 
std::string m_singleChar
The single char character matches exactly one character.
 
void setSingleChar(const std::string &s)
It sets the wild single character.