OMNeT++ Simulation Library  6.0.3
cMatchExpression::Matchable Class Referenceabstract

#include <cmatchexpression.h>

Description

Objects to be matched must implement this interface.

Inheritance diagram for cMatchExpression::Matchable:
cMatchableString

Public Member Functions

virtual const char * getAsString () const =0
 
virtual const char * getAsString (const char *attribute) const =0
 
virtual ~Matchable ()
 

Constructor & Destructor Documentation

◆ ~Matchable()

virtual ~Matchable ( )
inlinevirtual

Virtual destructor, for good manners...

Member Function Documentation

◆ getAsString() [1/2]

virtual const char* 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.

◆ getAsString() [2/2]

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

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.

Implemented in cMatchableString.


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