It is intended to encode a character string comparison operator with pattern matching. More...
#include <PropertyIsLike.h>
Public Types | |
typedef void | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
PropertyIsLike () | |
It initializes a new PropertyIsLike. More... | |
~PropertyIsLike () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setPropertyName (PropertyName *p) |
It sets the property name. More... | |
PropertyName * | getPropertyName () const |
It returns the property name. More... | |
void | setLiteral (Literal *l) |
It sets the literal value of the operator. More... | |
Literal * | getLiteral () const |
It returns the literal value. More... | |
void | setWildCard (const std::string &w) |
It sets the wild character. More... | |
const std::string & | getWildCard () const |
It returns the wild character. More... | |
void | setSingleChar (const std::string &s) |
It sets the wild single character. More... | |
const std::string & | getSingleChar () const |
It returns the single wild character. More... | |
void | setEscapeChar (const std::string &e) |
It sets the escape character. More... | |
const std::string & | getEscapeChar () const |
It returns the escape character. More... | |
Accessor methods | |
Methods used to get or set properties. | |
const char * | getName () const |
It returns the operator name. More... | |
void | setName (const char *opName) |
It sets the operator name. More... | |
Protected Attributes | |
const char * | m_name |
Operator name. More... | |
Private Attributes | |
std::string | m_escapeChar |
The escapeChar_ character is used to escape the meaning of the wildCard_, singleChar_ and escapeChar_ itself. (Mandatory.) More... | |
Literal * | m_literalValue |
Mandatory. More... | |
PropertyName * | m_property |
Mandatory. More... | |
std::string | m_singleChar |
The singleChar_ character matches exactly one character. (Mandatory) More... | |
std::string | m_wildCard |
The wildCard_ character matches zero or more characters. (Mandatory) More... | |
It is intended to encode a character string comparison operator with pattern matching.
The pattern is defined by a combination of regular characters, the wildCard character, the singleChar character, and the escapeChar character. The wildCard character matches zero or more characters. The singleChar character matches exactly one character.
Definition at line 58 of file PropertyIsLike.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::fe::PropertyIsLike::PropertyIsLike | ( | ) |
It initializes a new PropertyIsLike.
te::fe::PropertyIsLike::~PropertyIsLike | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
const std::string& te::fe::PropertyIsLike::getEscapeChar | ( | ) | const |
It returns the escape character.
Literal* te::fe::PropertyIsLike::getLiteral | ( | ) | const |
It returns the literal value.
|
inlineinherited |
PropertyName* te::fe::PropertyIsLike::getPropertyName | ( | ) | const |
It returns the property name.
const std::string& te::fe::PropertyIsLike::getSingleChar | ( | ) | const |
It returns the single wild character.
const std::string& te::fe::PropertyIsLike::getWildCard | ( | ) | const |
It returns the wild character.
void te::fe::PropertyIsLike::setEscapeChar | ( | const std::string & | e | ) |
It sets the escape character.
e | The escape character. |
void te::fe::PropertyIsLike::setLiteral | ( | Literal * | l | ) |
It sets the literal value of the operator.
l | The literal value of the operator. |
|
inlineinherited |
It sets the operator name.
opName | The operator name. |
Definition at line 89 of file AbstractOp.h.
void te::fe::PropertyIsLike::setPropertyName | ( | PropertyName * | p | ) |
It sets the property name.
p | The property name. |
void te::fe::PropertyIsLike::setSingleChar | ( | const std::string & | s | ) |
It sets the wild single character.
s | The wild single character. |
void te::fe::PropertyIsLike::setWildCard | ( | const std::string & | w | ) |
It sets the wild character.
w | The wild character. |
|
private |
The escapeChar_ character is used to escape the meaning of the wildCard_, singleChar_ and escapeChar_ itself. (Mandatory.)
Definition at line 164 of file PropertyIsLike.h.
|
private |
Mandatory.
Definition at line 161 of file PropertyIsLike.h.
|
protectedinherited |
Operator name.
Definition at line 120 of file AbstractOp.h.
|
private |
Mandatory.
Definition at line 160 of file PropertyIsLike.h.
|
private |
The singleChar_ character matches exactly one character. (Mandatory)
Definition at line 163 of file PropertyIsLike.h.
|
private |
The wildCard_ character matches zero or more characters. (Mandatory)
Definition at line 162 of file PropertyIsLike.h.