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

#include <Ieee80211Channel.h>

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

Public Member Functions

 Ieee80211Channel (const IIeee80211Band *band, int channelNumber)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) 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::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string getInfoStringRepresentation () const
 
virtual std::string getDetailStringRepresentation () const
 
virtual std::string getDebugStringRepresentation () const
 
virtual std::string getTraceStringRepresentation () const
 
virtual std::string getCompleteStringRepresentation () const
 

Protected Attributes

const IIeee80211Bandband
 
int channelNumber
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::Ieee80211Channel::Ieee80211Channel ( const IIeee80211Band band,
int  channelNumber 
)
24  :
25  band(band),
27 {
28 }
int channelNumber
Definition: Ieee80211Channel.h:31
const IIeee80211Band * band
Definition: Ieee80211Channel.h:30

Member Function Documentation

virtual const IIeee80211Band* inet::physicallayer::Ieee80211Channel::getBand ( ) const
inlinevirtual
38 { return band; }
const IIeee80211Band * band
Definition: Ieee80211Channel.h:30
virtual Hz inet::physicallayer::Ieee80211Channel::getCenterFrequency ( ) const
inlinevirtual

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

int channelNumber
Definition: Ieee80211Channel.h:31
virtual Hz getCenterFrequency(int channelNumber) const =0
const IIeee80211Band * band
Definition: Ieee80211Channel.h:30
std::ostream & inet::physicallayer::Ieee80211Channel::printToStream ( std::ostream &  stream,
int  level 
) const
overridevirtual

Prints this object to the provided output stream.

Function calls to operator<< with pointers or references either const or not are all forwarded to this function.

Reimplemented from inet::physicallayer::IPrintableObject.

31 {
32  stream << "Ieee80211Channel";
33  if (level <= PRINT_LEVEL_TRACE)
34  stream << ", band = " << printObjectToString(band, level + 1);
35  if (level <= PRINT_LEVEL_INFO)
36  stream << ", channelNumber = " << channelNumber;
37  return stream;
38 }
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
int channelNumber
Definition: Ieee80211Channel.h:31
const IIeee80211Band * band
Definition: Ieee80211Channel.h:30

Member Data Documentation

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

Referenced by printToStream().

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

Referenced by printToStream().


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