Objects to be matched must implement this interface. More...
#include <cmatchexpression.h>
Public Member Functions | |
virtual const char * | getAsString () const =0 |
virtual const char * | getAsString (const char *attribute) const =0 |
virtual | ~Matchable () |
Objects to be matched must implement this interface.
virtual cMatchExpression::Matchable::~Matchable | ( | ) | [inline, virtual] |
Virtual destructor, for good manners.
..
virtual const char* cMatchExpression::Matchable::getAsString | ( | const char * | attribute | ) | const [pure virtual] |
Return the string value of the given attribute, or NULL if the object doesn't have an attribute with that name.
The returned pointer will not be cached by the caller, so it is OK to return a pointer to a static buffer.
Implemented in cMatchableString.
virtual const char* cMatchExpression::Matchable::getAsString | ( | ) | const [pure virtual] |
Return the default string to match.
The returned pointer will not be cached by the caller, so it is OK to return a pointer to a static buffer.
Implemented in cMatchableString.