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 =
"\\");
#define TE_DEFINE_VISITABLE
This is an abstract class that models a query expression.
A class that models a Function expression.
It is intended to encode a character string comparison operator with pattern matching.
TE_DEFINE_VISITABLE Like(Expression *str, const std::string &pattern, const std::string &wildCard="%", const std::string &singleChar="_", const std::string &escapeChar="\\")
Constructor.
std::string m_escapeChar
The escape char character is used to escape the meaning of the wild card, single char and escape char...
Expression * getString() const
It returns the string expression to be compared with the like operator.
Like & operator=(const Like &rhs)
std::string m_singleChar
The single char character matches exactly one character.
Like(const Like &rhs)
Copy constructor.
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.
const std::string & getSingleChar() const
It returns the single wild character.
void setSingleChar(const std::string &s)
It sets the wild single character.
const std::string & getEscapeChar() const
It returns the escape character.
te::da::LiteralString * getPattern() const
It returns the pattern used in the comparison.
Expression * clone() const
It creates a new copy of this expression.
void setEscapeChar(const std::string &e)
It sets the escape character.
const std::string & getWildCard() const
It returns the wild character.
void setString(Expression *str)
It sets the string expression to be compared with the like operator.
Like(const Expression &str, const std::string &pattern, const std::string &wildCard="%", const std::string &singleChar="_", const std::string &escapeChar="\\")
Constructor.
void setWildCard(const std::string &w)
It sets the wild character.
This class models a string Literal value.
Symbology Encoding functions.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.