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

#include <Ieee80211Channel.h>

Inheritance diagram for inet::physicallayer::Ieee80211Channel:
inet::IPrintableObject

Public Member Functions

 Ieee80211Channel (const IIeee80211Band *band, int channelNumber)
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual const IIeee80211BandgetBand () const
 
virtual int getChannelNumber () const
 
virtual Hz getCenterFrequency () const
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Attributes

const IIeee80211Bandband
 
int channelNumber
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 

Constructor & Destructor Documentation

◆ Ieee80211Channel()

inet::physicallayer::Ieee80211Channel::Ieee80211Channel ( const IIeee80211Band band,
int  channelNumber 
)
14  :
15  band(band),
17 {
18 }

Member Function Documentation

◆ getBand()

virtual const IIeee80211Band* inet::physicallayer::Ieee80211Channel::getBand ( ) const
inlinevirtual
28 { return band; }

◆ getCenterFrequency()

virtual Hz inet::physicallayer::Ieee80211Channel::getCenterFrequency ( ) const
inlinevirtual

◆ getChannelNumber()

◆ printToStream()

std::ostream & inet::physicallayer::Ieee80211Channel::printToStream ( std::ostream &  stream,
int  level,
int  evFlags = 0 
) const
overridevirtual

Prints this object to the provided output stream.

Reimplemented from inet::IPrintableObject.

21 {
22  stream << "Ieee80211Channel";
23  if (level <= PRINT_LEVEL_TRACE)
24  stream << EV_FIELD(band, printFieldToString(band, level + 1, evFlags));
25  if (level <= PRINT_LEVEL_INFO)
26  stream << EV_FIELD(channelNumber);
27  return stream;
28 }

Member Data Documentation

◆ band

const IIeee80211Band* inet::physicallayer::Ieee80211Channel::band
protected

Referenced by printToStream().

◆ channelNumber

int inet::physicallayer::Ieee80211Channel::channelNumber
protected

Referenced by printToStream().


The documentation for this class was generated from the following files:
inet::physicallayer::Ieee80211Channel::band
const IIeee80211Band * band
Definition: Ieee80211Channel.h:20
inet::IPrintableObject::PRINT_LEVEL_INFO
@ PRINT_LEVEL_INFO
Definition: IPrintableObject.h:25
inet::printFieldToString
std::string printFieldToString(const IPrintableObject *object, int level, int evFlags=0)
Definition: IPrintableObject.h:98
inet::physicallayer::Ieee80211Channel::channelNumber
int channelNumber
Definition: Ieee80211Channel.h:21
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::IPrintableObject::PRINT_LEVEL_TRACE
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
inet::evFlags
int evFlags
Definition: INETDefs.cc:12
inet::physicallayer::IIeee80211Band::getCenterFrequency
virtual Hz getCenterFrequency(int channelNumber) const =0