INET Framework for OMNeT++/OMNEST
|
Wrapper around a cObject to make it matchable with cMatchExpression. More...
#include <MatchableObject.h>
Public Types | |
enum | Attribute { ATTRIBUTE_FULLNAME, ATTRIBUTE_FULLPATH, ATTRIBUTE_CLASSNAME } |
Public Member Functions | |
MatchableObject (Attribute defaultAttribute=ATTRIBUTE_FULLPATH, const cObject *object=nullptr) | |
void | setObject (const cObject *object) |
void | setDefaultAttribute (Attribute defaultAttribute) |
virtual const char * | getAsString () const override |
virtual const char * | getAsString (const char *attribute) const override |
Static Protected Member Functions | |
static void | splitIndex (char *indexedName, int &index) |
static bool | findDescriptorField (cClassDescriptor *classDescriptor, const char *attribute, int &fieldId, int &index) |
Protected Attributes | |
Attribute | defaultAttribute |
const cObject * | object |
cClassDescriptor * | classDescriptor |
std::string | attributeValue |
Wrapper around a cObject to make it matchable with cMatchExpression.
inet::MatchableObject::MatchableObject | ( | Attribute | defaultAttribute = ATTRIBUTE_FULLPATH , |
const cObject * | object = nullptr |
||
) |
|
staticprotected |
Referenced by getAsString().
|
overridevirtual |
|
overridevirtual |
|
inline |
void inet::MatchableObject::setObject | ( | const cObject * | object | ) |
|
staticprotected |
Referenced by findDescriptorField().
|
mutableprotected |
Referenced by getAsString().
|
mutableprotected |
Referenced by getAsString(), MatchableObject(), and setObject().
|
protected |
Referenced by getAsString(), and MatchableObject().
|
protected |
Referenced by MatchableObject(), and setObject().