It is intended to encode a character string comparison operator with pattern matching.  
 More...
#include <Like.h>
|  | 
| std::string | m_escapeChar | 
|  | The escape char character is used to escape the meaning of the wild card, single char and escape char itself.  More... 
 | 
|  | 
| std::string | m_pattern | 
|  | The literal string pattern.  More... 
 | 
|  | 
| std::string | m_singleChar | 
|  | The single char character matches exactly one character.  More... 
 | 
|  | 
| std::string | m_wildCard | 
|  | The wild card character matches zero or more characters.  More... 
 | 
|  | 
It is intended to encode a character string comparison operator with pattern matching. 
- See also
- Function 
Definition at line 43 of file Like.h.
      
        
          | TE_DEFINE_VISITABLE te::da::Like::Like | ( | Expression * | str, | 
        
          |  |  | const std::string & | pattern, | 
        
          |  |  | const std::string & | wildCard = "%", | 
        
          |  |  | const std::string & | singleChar = "_", | 
        
          |  |  | const std::string & | escapeChar = "\\" | 
        
          |  | ) |  |  | 
      
 
Constructor. 
- Parameters
- 
  
    | str | The operator will take the expression ownership. |  
 
 
 
      
        
          | te::da::Like::Like | ( | const Expression & | str, | 
        
          |  |  | const std::string & | pattern, | 
        
          |  |  | const std::string & | wildCard = "%", | 
        
          |  |  | const std::string & | singleChar = "_", | 
        
          |  |  | const std::string & | escapeChar = "\\" | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | te::da::Like::Like | ( | const Like & | rhs | ) |  | 
      
 
 
It call the visit method from the guest object. 
- Parameters
- 
  
    | guest | The guest or visitor. |  
 
- Returns
- Any valid value define by the template type R. 
 
 
It adds the argument to the function list of arguments. 
- Parameters
- 
  
    | arg | The argument to be added. |  
 
- Note
- The Function will take the ownership of the given argument. 
 
 
  
  | 
        
          | Expression* te::da::Function::getArg | ( | std::size_t | i | ) | const |  | inherited | 
 
It returns the i-th function argument. 
- Parameters
- 
  
  
- Returns
- The it-th function argument. 
 
 
      
        
          | const std::string& te::da::Like::getEscapeChar | ( |  | ) | const | 
      
 
It returns the escape character. 
- Returns
- The escape character. 
 
 
  
  | 
        
          | const std::string& te::da::Function::getName | ( |  | ) | const |  | inlineinherited | 
 
It returns the function name. 
- Returns
- The function name. 
Definition at line 79 of file Function.h.
 
 
  
  | 
        
          | std::size_t te::da::Function::getNumArgs | ( |  | ) | const |  | inherited | 
 
It returns the number of arguments informed to the function. 
- Returns
- The number of parameters. 
 
 
      
        
          | const std::string& te::da::Like::getPattern | ( |  | ) |  | 
      
 
It returns the pattern used in the comparison. 
- Returns
- The pattern used in the comparison. 
 
 
      
        
          | const std::string& te::da::Like::getSingleChar | ( |  | ) | const | 
      
 
It returns the single wild character. 
- Returns
- The single wild character. 
 
 
It returns the string expression to be compared with the like operator. 
- Returns
- The string expression to be compared with the like operator. 
 
 
      
        
          | const std::string& te::da::Like::getWildCard | ( |  | ) | const | 
      
 
It returns the wild character. 
- Returns
- The wild character. 
 
 
      
        
          | Like& te::da::Like::operator= | ( | const Like & | rhs | ) |  | 
      
 
 
  
  | 
        
          | Expression* te::da::Function::operator[] | ( | std::size_t | i | ) | const |  | inherited | 
 
It returns the i-th function argument. 
- Parameters
- 
  
  
- Returns
- The it-th function argument. 
 
 
      
        
          | void te::da::Like::setEscapeChar | ( | const std::string & | e | ) |  | 
      
 
It sets the escape character. 
- Parameters
- 
  
  
 
 
      
        
          | void te::da::Like::setPattern | ( | const std::string & | p | ) |  | 
      
 
It sets the pattern to be used in the comparison. 
- Parameters
- 
  
    | p | The pattern to be used in the comparison. |  
 
 
 
      
        
          | void te::da::Like::setSingleChar | ( | const std::string & | s | ) |  | 
      
 
It sets the wild single character. 
- Parameters
- 
  
    | s | The wild single character. |  
 
 
 
It sets the string expression to be compared with the like operator. 
- Parameters
- 
  
    | str | The string expression to be compared with the like operator. |  
 
 
 
      
        
          | void te::da::Like::setWildCard | ( | const std::string & | w | ) |  | 
      
 
It sets the wild character. 
- Parameters
- 
  
  
 
 
The list of arguments. 
Definition at line 118 of file Function.h.
 
 
  
  | 
        
          | std::string te::da::Like::m_escapeChar |  | private | 
 
The escape char character is used to escape the meaning of the wild card, single char and escape char itself. 
Definition at line 154 of file Like.h.
 
 
  
  | 
        
          | std::string te::da::Function::m_name |  | protectedinherited | 
 
The function name. May be an operator symbol or just a regular name like ST_Intersects. 
Definition at line 117 of file Function.h.
 
 
  
  | 
        
          | std::string te::da::Like::m_pattern |  | private | 
 
The literal string pattern. 
Definition at line 151 of file Like.h.
 
 
  
  | 
        
          | std::string te::da::Like::m_singleChar |  | private | 
 
The single char character matches exactly one character. 
Definition at line 153 of file Like.h.
 
 
  
  | 
        
          | std::string te::da::Like::m_wildCard |  | private | 
 
The wild card character matches zero or more characters. 
Definition at line 152 of file Like.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/dataaccess/query/Like.h