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

#include <ListeningDecision.h>

Inheritance diagram for inet::physicallayer::ListeningDecision:
inet::physicallayer::IListeningDecision inet::physicallayer::IPrintableObject

Public Member Functions

 ListeningDecision (const IListening *listening, bool isListeningPossible_)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const IListeninggetListening () const override
 
virtual bool isListeningPossible () const override
 
- 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 IListeninglistening
 
const bool isListeningPossible_
 

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::ListeningDecision::ListeningDecision ( const IListening listening,
bool  isListeningPossible_ 
)
24  :
27 {
28 }
const IListening * listening
Definition: ListeningDecision.h:30
const bool isListeningPossible_
Definition: ListeningDecision.h:31

Member Function Documentation

virtual const IListening* inet::physicallayer::ListeningDecision::getListening ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IListeningDecision.

38 { return listening; }
const IListening * listening
Definition: ListeningDecision.h:30
virtual bool inet::physicallayer::ListeningDecision::isListeningPossible ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IListeningDecision.

40 { return isListeningPossible_; }
const bool isListeningPossible_
Definition: ListeningDecision.h:31
std::ostream & inet::physicallayer::ListeningDecision::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 << "ListeningDecision";
33  if (level <= PRINT_LEVEL_DETAIL)
34  stream << (isListeningPossible_ ? ", possible" : ", impossible");
35  if (level <= PRINT_LEVEL_TRACE)
36  stream << ", listening = " << printObjectToString(listening, level + 1);
37  return stream;
38 }
const IListening * listening
Definition: ListeningDecision.h:30
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const bool isListeningPossible_
Definition: ListeningDecision.h:31

Member Data Documentation

const bool inet::physicallayer::ListeningDecision::isListeningPossible_
protected

Referenced by printToStream().

const IListening* inet::physicallayer::ListeningDecision::listening
protected

Referenced by printToStream().


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