INET Framework for OMNeT++/OMNEST
inet::Ieee802EpdProtocolPrinter Class Reference

#include <Ieee802EpdProtocolPrinter.h>

Inheritance diagram for inet::Ieee802EpdProtocolPrinter:
inet::ProtocolPrinter

Public Member Functions

virtual void print (const Ptr< const Chunk > &chunk, const Protocol *protocol, const cMessagePrinter::Options *options, Context &context) const override
 Prints the given chunk of protocol according to options into context. More...
 

Member Function Documentation

◆ print()

void inet::Ieee802EpdProtocolPrinter::print ( const Ptr< const Chunk > &  chunk,
const Protocol protocol,
const cMessagePrinter::Options *  options,
Context context 
) const
overridevirtual

Prints the given chunk of protocol according to options into context.

Implements inet::ProtocolPrinter.

18 {
19  if (auto header = dynamicPtrCast<const Ieee802EpdHeader>(chunk))
20  context.infoColumn << "etherType: " << header->getEtherType();
21  else
22  context.infoColumn << "(IEEE 802 EPD)" << chunk;
23 }

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