MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtLgrDisPacketPrinter Class Reference

A DIS packet printer. More...

+ Inheritance diagram for MAKLogger::DtLgrDisPacketPrinter:
+ Collaboration diagram for MAKLogger::DtLgrDisPacketPrinter:

Public Member Functions

virtual ~DtLgrDisPacketPrinter ()
 DTOR. More...
 
virtual void beginPrinting (const DtMessageIOInfo *info, const DtMessageInput *msgInput, const DtString &destination)
 Begin printing to the destination. More...
 
virtual void printPacket (const DtPacket &packet)
 Print a single packet. More...
 
virtual void endPrinting ()
 End printing to the destination. More...
 
- Public Member Functions inherited from MAKLogger::DtLgrPacketPrinter
 DtLgrPacketPrinter ()
 
virtual ~DtLgrPacketPrinter ()
 

Protected Types

typedef void(DtLgrDisPacketPrinter::* PacketPrintFunction )(const DtPacket &)
 
typedef std::map
< DtPacket::DtPacketType,
PacketPrintFunction
PrintFunctionMap
 

Protected Member Functions

std::ofstream & outputStream ()
 Get the current output stream. More...
 
virtual void printPacketHeader (const DtPacket &packet)
 Print the packet header. More...
 
virtual void printPacketTail (const DtPacket &packet)
 Print the packet tail. More...
 
void printOtherPacket (const DtPacket &packet)
 Print an other packet type. More...
 
void printConfigPacket (const DtPacket &packet)
 Print a configuration data packet. More...
 
void printDateTimePacket (const DtPacket &packet)
 Print a date time packet. More...
 
void printState (const char *stateBuffer, size_t bufferSize, bool includeUpdateHeaders)
 Prints the checkpoint state records in the given buffer. More...
 
void printInitialStatePacket (const DtPacket &packet)
 Prints an initial state packet. More...
 
void printCheckpointPacket (const DtPacket &packet)
 Print an checkpoint packet type. More...
 
void printIndexTablePacket (const DtPacket &packet)
 Print an index table packet. More...
 
void printRecordingDataPacket (const DtPacket &packet)
 Print a recording data packet type. More...
 
void printStartEndTimePacket (const DtPacket &packet)
 Print a start/end data packet type. More...
 
void printDescriptionPacket (const DtPacket &packet)
 Print a tape description packet type. More...
 
void printEntityTablePacket (const DtPacket &packet)
 Print an entity table packet. More...
 
void printPausePacket (const DtPacket &packet)
 Prints an pause packet. More...
 
void printUnpausePacket (const DtPacket &packet)
 Prints an unpause packet. More...
 
void printPduPacket (const DtPacket &packet)
 Print a PDU packet type. More...
 

Protected Attributes

DtDisPduFactory * myPduFactory
 
int myPduCount
 
int myPacketCount
 
int myCheckpointCount
 
const DtLgrFileFormattermyFormatter
 The playback file formatter. More...
 
bool myPrintRawData
 
PrintFunctionMap myPrintFunctionMap
 
std::ofstream * myOutputFile
 
DtTime myFileDateTime
 Date and time of file (seconds since epoch) More...
 
DtMessageBuffer myEndMetadata
 The end metadata from the input file. More...
 
DtTime myUnpauseTime
 File time when unpaused. More...
 

Private Member Functions

 DtLgrDisPacketPrinter (const DtLgrDisPacketPrinter &)
 Not Implemented. More...
 
DtLgrDisPacketPrinteroperator= (const DtLgrDisPacketPrinter &)
 Not Implemented. More...
 

Detailed Description

A DIS packet printer.

Member Typedef Documentation

typedef void(DtLgrDisPacketPrinter::* MAKLogger::DtLgrDisPacketPrinter::PacketPrintFunction)(const DtPacket &)
protected

Constructor & Destructor Documentation

virtual MAKLogger::DtLgrDisPacketPrinter::~DtLgrDisPacketPrinter ( )
virtual

DTOR.

MAKLogger::DtLgrDisPacketPrinter::DtLgrDisPacketPrinter ( const DtLgrDisPacketPrinter )
private

Not Implemented.

Member Function Documentation

virtual void MAKLogger::DtLgrDisPacketPrinter::beginPrinting ( const DtMessageIOInfo info,
const DtMessageInput msgInput,
const DtString &  destination 
)
virtual

Begin printing to the destination.

Reimplemented from MAKLogger::DtLgrPacketPrinter.

virtual void MAKLogger::DtLgrDisPacketPrinter::endPrinting ( )
virtual

End printing to the destination.

Reimplemented from MAKLogger::DtLgrPacketPrinter.

DtLgrDisPacketPrinter& MAKLogger::DtLgrDisPacketPrinter::operator= ( const DtLgrDisPacketPrinter )
private

Not Implemented.

std::ofstream& MAKLogger::DtLgrDisPacketPrinter::outputStream ( )
protected

Get the current output stream.

void MAKLogger::DtLgrDisPacketPrinter::printCheckpointPacket ( const DtPacket packet)
protected

Print an checkpoint packet type.

void MAKLogger::DtLgrDisPacketPrinter::printConfigPacket ( const DtPacket packet)
protected

Print a configuration data packet.

void MAKLogger::DtLgrDisPacketPrinter::printDateTimePacket ( const DtPacket packet)
protected

Print a date time packet.

void MAKLogger::DtLgrDisPacketPrinter::printDescriptionPacket ( const DtPacket packet)
protected

Print a tape description packet type.

void MAKLogger::DtLgrDisPacketPrinter::printEntityTablePacket ( const DtPacket packet)
protected

Print an entity table packet.

void MAKLogger::DtLgrDisPacketPrinter::printIndexTablePacket ( const DtPacket packet)
protected

Print an index table packet.

void MAKLogger::DtLgrDisPacketPrinter::printInitialStatePacket ( const DtPacket packet)
protected

Prints an initial state packet.

void MAKLogger::DtLgrDisPacketPrinter::printOtherPacket ( const DtPacket packet)
protected

Print an other packet type.

virtual void MAKLogger::DtLgrDisPacketPrinter::printPacket ( const DtPacket packet)
virtual

Print a single packet.

Implements MAKLogger::DtLgrPacketPrinter.

virtual void MAKLogger::DtLgrDisPacketPrinter::printPacketHeader ( const DtPacket packet)
protectedvirtual

Print the packet header.

virtual void MAKLogger::DtLgrDisPacketPrinter::printPacketTail ( const DtPacket packet)
protectedvirtual

Print the packet tail.

void MAKLogger::DtLgrDisPacketPrinter::printPausePacket ( const DtPacket packet)
protected

Prints an pause packet.

void MAKLogger::DtLgrDisPacketPrinter::printPduPacket ( const DtPacket packet)
protected

Print a PDU packet type.

void MAKLogger::DtLgrDisPacketPrinter::printRecordingDataPacket ( const DtPacket packet)
protected

Print a recording data packet type.

void MAKLogger::DtLgrDisPacketPrinter::printStartEndTimePacket ( const DtPacket packet)
protected

Print a start/end data packet type.

void MAKLogger::DtLgrDisPacketPrinter::printState ( const char *  stateBuffer,
size_t  bufferSize,
bool  includeUpdateHeaders 
)
protected

Prints the checkpoint state records in the given buffer.

void MAKLogger::DtLgrDisPacketPrinter::printUnpausePacket ( const DtPacket packet)
protected

Prints an unpause packet.

Member Data Documentation

int MAKLogger::DtLgrDisPacketPrinter::myCheckpointCount
protected
DtMessageBuffer MAKLogger::DtLgrDisPacketPrinter::myEndMetadata
protected

The end metadata from the input file.

DtTime MAKLogger::DtLgrDisPacketPrinter::myFileDateTime
protected

Date and time of file (seconds since epoch)

const DtLgrFileFormatter* MAKLogger::DtLgrDisPacketPrinter::myFormatter
protected

The playback file formatter.

std::ofstream* MAKLogger::DtLgrDisPacketPrinter::myOutputFile
protected
int MAKLogger::DtLgrDisPacketPrinter::myPacketCount
protected
int MAKLogger::DtLgrDisPacketPrinter::myPduCount
protected
DtDisPduFactory* MAKLogger::DtLgrDisPacketPrinter::myPduFactory
protected
PrintFunctionMap MAKLogger::DtLgrDisPacketPrinter::myPrintFunctionMap
protected
bool MAKLogger::DtLgrDisPacketPrinter::myPrintRawData
protected
DtTime MAKLogger::DtLgrDisPacketPrinter::myUnpauseTime
protected

File time when unpaused.


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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)