cMatchableString Class Reference

API: cMatchableString Class Reference
API
cMatchableString Class Reference
Inheritance diagram for cMatchableString:
[legend]

Public Member Functions

virtual const char * getAsString () const override
virtual const char * getAsString (const char *attribute) const override
Public Member Functions inherited from cMatchExpression::Matchable
virtual ~Matchable ()

Description

Wrapper to make a string matchable with cMatchExpression.

Member Function Documentation

◆ getAsString() [1/2]

virtual const char * getAsString ( ) const
inlineoverridevirtual

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.

◆ getAsString() [2/2]

virtual const char * getAsString ( const char * attribute) const
inlineoverridevirtual

Return the string value of the given attribute, or nullptr 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.