INET Framework for OMNeT++/OMNEST
inet::L3NetworkConfiguratorBase::Matcher Class Reference

#include <L3NetworkConfiguratorBase.h>

Public Member Functions

 Matcher (const char *pattern)
 
 ~Matcher ()
 
bool matches (const char *s)
 
bool matchesAny ()
 

Protected Attributes

bool matchesany = false
 
std::vector< inet::PatternMatcher * > matchers
 

Constructor & Destructor Documentation

◆ Matcher()

inet::L3NetworkConfiguratorBase::Matcher::Matcher ( const char *  pattern)
569 {
570  matchesany = opp_isempty(pattern);
571  if (matchesany)
572  return;
573  cStringTokenizer tokenizer(pattern);
574  while (tokenizer.hasMoreTokens())
575  matchers.push_back(new inet::PatternMatcher(tokenizer.nextToken(), true, true, true));
576 }

◆ ~Matcher()

inet::L3NetworkConfiguratorBase::Matcher::~Matcher ( )
579 {
580  for (auto& matcher : matchers)
581  delete matcher;
582 }

Member Function Documentation

◆ matches()

◆ matchesAny()

Member Data Documentation

◆ matchers

std::vector<inet::PatternMatcher *> inet::L3NetworkConfiguratorBase::Matcher::matchers
protected

◆ matchesany

bool inet::L3NetworkConfiguratorBase::Matcher::matchesany = false
protected

The documentation for this class was generated from the following files:
inet::L3NetworkConfiguratorBase::Matcher::matchers
std::vector< inet::PatternMatcher * > matchers
Definition: L3NetworkConfiguratorBase.h:109
inet::units::values::s
value< double, units::s > s
Definition: Units.h:1235
inet::L3NetworkConfiguratorBase::Matcher::matchesany
bool matchesany
Definition: L3NetworkConfiguratorBase.h:108
inet::PatternMatcher
Glob-style pattern matching class, adopted to special OMNeT++ requirements.
Definition: PatternMatcher.h:69