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

#include <Ieee80211TransmissionBase.h>

Inheritance diagram for inet::physicallayer::Ieee80211TransmissionBase:
inet::physicallayer::IPrintableObject inet::physicallayer::Ieee80211DimensionalTransmission inet::physicallayer::Ieee80211IdealTransmission inet::physicallayer::Ieee80211ScalarTransmission

Public Member Functions

 Ieee80211TransmissionBase (const IIeee80211Mode *mode, const Ieee80211Channel *channel)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const IIeee80211ModegetMode () const
 
virtual const Ieee80211ChannelgetChannel () 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 IIeee80211Modemode
 
const Ieee80211Channelchannel
 

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::Ieee80211TransmissionBase::Ieee80211TransmissionBase ( const IIeee80211Mode mode,
const Ieee80211Channel channel 
)
24  :
25  mode(mode),
27 {
28 }
const Ieee80211Channel * channel
Definition: Ieee80211TransmissionBase.h:32
const IIeee80211Mode * mode
Definition: Ieee80211TransmissionBase.h:31

Member Function Documentation

virtual const Ieee80211Channel* inet::physicallayer::Ieee80211TransmissionBase::getChannel ( ) const
inlinevirtual
std::ostream & inet::physicallayer::Ieee80211TransmissionBase::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.

Reimplemented in inet::physicallayer::Ieee80211IdealTransmission, inet::physicallayer::Ieee80211DimensionalTransmission, and inet::physicallayer::Ieee80211ScalarTransmission.

Referenced by inet::physicallayer::Ieee80211DimensionalTransmission::printToStream(), inet::physicallayer::Ieee80211ScalarTransmission::printToStream(), and inet::physicallayer::Ieee80211IdealTransmission::printToStream().

31 {
32  if (level <= PRINT_LEVEL_DETAIL)
33  stream << ", mode = " << printObjectToString(mode, level + 1)
34  << ", channel = " << printObjectToString(channel, level + 1);
35  return stream;
36 }
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const Ieee80211Channel * channel
Definition: Ieee80211TransmissionBase.h:32
const IIeee80211Mode * mode
Definition: Ieee80211TransmissionBase.h:31

Member Data Documentation

const Ieee80211Channel* inet::physicallayer::Ieee80211TransmissionBase::channel
protected

Referenced by printToStream().

const IIeee80211Mode* inet::physicallayer::Ieee80211TransmissionBase::mode
protected

Referenced by printToStream().


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