OMNeT++ API 6.1
Discrete Event Simulation Library
cMatchExpression::Matchable Class Referenceabstract

Description

Objects to be matched must implement this interface.

Inheritance diagram for cMatchExpression::Matchable:
[legend]

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: