INET Framework for OMNeT++/OMNEST
|
Utility class for configuring interfaces. More...
#include <InterfaceMatcher.h>
Classes | |
class | Matcher |
struct | Selector |
Public Member Functions | |
InterfaceMatcher (const cXMLElementList &selectors) | |
~InterfaceMatcher () | |
int | findMatchingSelector (const InterfaceEntry *ie) |
Returns the index of the first selector that matches the interface. More... | |
Private Member Functions | |
bool | linkContainsMatchingHost (const InterfaceEntry *ie, const Matcher &hostMatcher) const |
void | collectNeighbors (cGate *outGate, std::vector< cModule * > &hostNodes, std::vector< cModule * > &deviceNodes, cModule *exludedNode) const |
Private Attributes | |
std::vector< Selector * > | selectors |
Utility class for configuring interfaces.
It is assumed that the configuration is described by an xml document. Each element in the configuration applies parameters to a set of interfaces. These interfaces are selected by a set of selector attributes: , , , and . The value of these attributes are space separated name patterns. ...
If there are more selector attributes in an element, all of them are required to match.
inet::InterfaceMatcher::InterfaceMatcher | ( | const cXMLElementList & | selectors | ) |
inet::InterfaceMatcher::~InterfaceMatcher | ( | ) |
|
private |
Referenced by linkContainsMatchingHost().
int inet::InterfaceMatcher::findMatchingSelector | ( | const InterfaceEntry * | ie | ) |
Returns the index of the first selector that matches the interface.
Referenced by inet::PIMInterfaceTable::addInterface(), inet::PIMInterfaceTable::configureInterfaces(), inet::RIPRouting::configureInterfaces(), and inet::RIPRouting::receiveSignal().
|
private |
Referenced by inet::InterfaceMatcher::Selector::matches().
|
private |
Referenced by findMatchingSelector(), InterfaceMatcher(), and ~InterfaceMatcher().