|
INET Framework for OMNeT++/OMNEST
|
Wrapper around a cObject field to make it matchable with cMatchExpression. More...
#include <MatchableField.h>
Public Member Functions | |
| MatchableField (cObject *object=nullptr, int fieldIndex=-1) | |
| void | setField (cObject *object, int fieldIndex) |
| void | setField (cObject *object, const char *fieldName) |
| virtual const char * | getAsString () const override |
| virtual const char * | getAsString (const char *attribute) const override |
Protected Attributes | |
| cObject * | object |
| cClassDescriptor * | classDescriptor |
| int | fieldIndex |
Wrapper around a cObject field to make it matchable with cMatchExpression.
The default attribute is the field name.
| inet::MatchableField::MatchableField | ( | cObject * | object = nullptr, |
| int | fieldIndex = -1 |
||
| ) |
|
overridevirtual |
|
overridevirtual |
| void inet::MatchableField::setField | ( | cObject * | object, |
| const char * | fieldName | ||
| ) |
| void inet::MatchableField::setField | ( | cObject * | object, |
| int | fieldIndex | ||
| ) |
Referenced by MatchableField().
|
mutableprotected |
Referenced by getAsString(), and setField().
|
protected |
Referenced by getAsString(), MatchableField(), and setField().
|
protected |
Referenced by setField().