INET Framework for OMNeT++/OMNEST
inet::physicallayer::Ieee80211CompliantBands Class Reference

#include <Ieee80211Band.h>

Static Public Member Functions

static const IIeee80211BandfindBand (const char *name)
 
static const IIeee80211BandgetBand (const char *name)
 

Static Public Attributes

static const Ieee80211EnumeratedBand band2_4GHz
 
static const Ieee80211ArithmeticalBand band5GHz
 
static const Ieee80211ArithmeticalBand band5_9GHz
 

Static Protected Attributes

static const std::vector< const IIeee80211Band * > bands = {&band2_4GHz, &band5GHz, &band5_9GHz}
 

Member Function Documentation

const IIeee80211Band * inet::physicallayer::Ieee80211CompliantBands::findBand ( const char *  name)
static
82 {
83  for (auto & band : bands)
84  if (!strcmp(band->getName(), name))
85  return band;
86  return nullptr;
87 }
static const std::vector< const IIeee80211Band * > bands
Definition: Ieee80211Band.h:76
const IIeee80211Band * inet::physicallayer::Ieee80211CompliantBands::getBand ( const char *  name)
static

Referenced by inet::physicallayer::Ieee80211ReceiverBase::initialize(), and inet::physicallayer::Ieee80211TransmitterBase::initialize().

90 {
91  const IIeee80211Band *band = findBand(name);
92  if (band == nullptr)
93  throw cRuntimeError("Unknown 802.11 band: '%c'", name);
94  else
95  return band;
96 }
static const IIeee80211Band * findBand(const char *name)
Definition: Ieee80211Band.cc:81

Member Data Documentation

const Ieee80211EnumeratedBand inet::physicallayer::Ieee80211CompliantBands::band2_4GHz
static
const Ieee80211ArithmeticalBand inet::physicallayer::Ieee80211CompliantBands::band5_9GHz
static
const Ieee80211ArithmeticalBand inet::physicallayer::Ieee80211CompliantBands::band5GHz
static
const std::vector< const IIeee80211Band * > inet::physicallayer::Ieee80211CompliantBands::bands = {&band2_4GHz, &band5GHz, &band5_9GHz}
staticprotected

The documentation for this class was generated from the following files: