OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CMATCHEXPRESSION_H
17 #define __OMNETPP_CMATCHEXPRESSION_H
20 #include "simkerneldefs.h"
25 namespace common {
class MatchExpression; };
69 virtual const char *getAsString()
const = 0;
76 virtual const char *getAsString(
const char *attribute)
const = 0;
85 omnetpp::common::MatchExpression *impl;
96 cMatchExpression(
const char *pattern,
bool dottedpath,
bool fullstring,
bool casesensitive);
113 void setPattern(
const char *pattern,
bool dottedpath,
bool fullstring,
bool casesensitive);
119 bool matches(
const Matchable *
object)
const;
133 virtual const char *
getAsString()
const override {
return str.c_str();}
134 virtual const char *
getAsString(
const char *attribute)
const override {
return nullptr;}
Objects to be matched must implement this interface.
Definition: cmatchexpression.h:62
Utility class, to make it impossible to call the operator= and copy constructor of any class derived ...
Definition: cobject.h:415
virtual ~Matchable()
Definition: cmatchexpression.h:81
virtual const char * getAsString(const char *attribute) const override
Definition: cmatchexpression.h:134
Wrapper to make a string matchable with cMatchExpression.
Definition: cmatchexpression.h:127
Decides whether an object matches an expression.
Definition: cmatchexpression.h:55
virtual const char * getAsString() const override
Definition: cmatchexpression.h:133
cMatchExpression(cMatchExpression &&other)
Definition: cmatchexpression.h:101