OMNeT++ Simulation Library  6.0.3
cMatchableString Class Reference

#include <cmatchexpression.h>

Description

Wrapper to make a string matchable with cMatchExpression.

Inheritance diagram for cMatchableString:
cMatchExpression::Matchable

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 ()
 

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.


The documentation for this class was generated from the following file: