#include <ProtocolPrinter.h>
|
| 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...
|
| |
◆ print()
| void inet::DefaultProtocolPrinter::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.
22 context.infoColumn <<
"(UNKNOWN) ";
24 context.infoColumn <<
"(UNIMPLEMENTED " <<
protocol->getDescriptiveName() <<
") ";
25 if (
auto byteCountChunk = dynamicPtrCast<const ByteCountChunk>(chunk))
26 context.infoColumn << byteCountChunk->getChunkLength();
27 else if (
auto bitCountChunk = dynamicPtrCast<const BitCountChunk>(chunk))
28 context.infoColumn << bitCountChunk->getChunkLength();
30 context.infoColumn << chunk;
The documentation for this class was generated from the following files: