Wrapper to make a string matchable with cMatchExpression. More...
#include <cmatchexpression.h>
Public Member Functions | |
virtual const char * | getAsString () const |
virtual const char * | getAsString (const char *attribute) const |
Wrapper to make a string matchable with cMatchExpression.
virtual const char* cMatchableString::getAsString | ( | const char * | attribute | ) | const [inline, 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.
Implements cMatchExpression::Matchable.
virtual const char* cMatchableString::getAsString | ( | ) | const [inline, 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.
Implements cMatchExpression::Matchable.