16 #ifndef __OMNETPP_CMATCHEXPRESSION_H 17 #define __OMNETPP_CMATCHEXPRESSION_H 20 #include "simkerneldefs.h" 24 namespace common {
class MatchExpression; };
71 virtual const char *getAsString()
const = 0;
78 virtual const char *getAsString(
const char *attribute)
const = 0;
87 omnetpp::common::MatchExpression *impl;
98 cMatchExpression(
const char *pattern,
bool dottedpath,
bool fullstring,
bool casesensitive);
110 void setPattern(
const char *pattern,
bool dottedpath,
bool fullstring,
bool casesensitive);
130 virtual const char *
getAsString()
const override {
return str.c_str();}
131 virtual const char *
getAsString(
const char *attribute)
const override {
return nullptr;}
Objects to be matched must implement this interface.
Definition: cmatchexpression.h:64
virtual ~Matchable()
Definition: cmatchexpression.h:83
virtual const char * getAsString(const char *attribute) const override
Definition: cmatchexpression.h:131
virtual const char * getAsString() const override
Definition: cmatchexpression.h:130
Wrapper to make a string matchable with cMatchExpression.
Definition: cmatchexpression.h:124
Definition: cabstracthistogram.h:21
Decides whether an object matches an expression.
Definition: cmatchexpression.h:57