MAK Data Logger API Documentation for HLA
 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::DtLgrHlaPacketPrinter Class Reference

A DIS packet printer. More...

+ Inheritance diagram for MAKLogger::DtLgrHlaPacketPrinter:
+ Collaboration diagram for MAKLogger::DtLgrHlaPacketPrinter:

Public Member Functions

virtual ~DtLgrHlaPacketPrinter ()
 Virtual CTOR. 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(DtLgrHlaPacketPrinter::* PacketPrintFunction )(const DtPacket &)
 Print function signature. More...
 
typedef std::map
< DtPacket::DtPacketType,
PacketPrintFunction
PrintFunctionMap
 Mapping of packet type to print function. More...
 

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)
 Prints an other packet. More...
 
void printFomPacket (const DtPacket &packet)
 Prints an FOM packet. More...
 
void printConfigPacket (const DtPacket &packet)
 Prints an config packet. More...
 
void printDateTimePacket (const DtPacket &packet)
 Prints an date/time packet. More...
 
void printState (const char *stateBuffer, size_t bufferSize, int numberCheckpoints)
 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)
 Prints a checkpoint packet. More...
 
void printIndexTablePacket (const DtPacket &packet)
 Prints an index table packet. More...
 
void printRecordingDataPacket (const DtPacket &packet)
 Prints an recording data packet. 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)
 Prints an entity table packet. More...
 
void printRegionDescriptorSet (const DtRegionDescSet &regionSet)
 Prints a region descriptor set. More...
 
void printInteractionPacket (const DtPacket &packet)
 Prints an interaction packet. More...
 
void printInteractionPacketData (const DtPacket &packet, bool printTag)
 Prints the interaction packet data with(out) tag. More...
 
void printUpdatePacket (const DtPacket &packet)
 Prints an update packet. More...
 
void printUpdatePacketData (const DtPacket &packet, bool printTag)
 Prints the update packet data with(out) tag. More...
 
void printRemovalPacket (const DtPacket &packet)
 Prints an removal packet. More...
 
void printPausePacket (const DtPacket &packet)
 Prints an pause packet. More...
 
void printUnpausePacket (const DtPacket &packet)
 Prints an unpause packet. More...
 

Protected Attributes

int myPacketCount
 My count of packets. More...
 
int myCheckpointCount
 My count of checkpoint messages. More...
 
int myInteractionCount
 My count of interaction messages. More...
 
int myUpdateCount
 My count of update messages. More...
 
int myRemovalCount
 My count of removal messages. More...
 
bool myPrintRawData
 My flag for printing raw (binary) data. More...
 
PrintFunctionMap myPrintFunctionMap
 My print function map. More...
 
std::ofstream * myOutputFile
 My output file. More...
 
DtLoggermyLogger
 My logger object. More...
 
DtBaseFomDescmyOutputFom
 The fom of the packets. More...
 
const DtLgrFileFormattermyFormatter
 The playback file formatter. More...
 
DtTime myFileDateTime
 Date and time of file (seconds since epoch) More...
 
DtTime myUnpauseTime
 File time when unpaused. More...
 
DtMessageBuffer myEndMetadata
 The end metadata from the input file. More...
 

Private Member Functions

 DtLgrHlaPacketPrinter (const DtLgrHlaPacketPrinter &)
 Not Implemented. More...
 
DtLgrHlaPacketPrinteroperator= (const DtLgrHlaPacketPrinter &)
 Not Implemented. More...
 

Detailed Description

A DIS packet printer.

Member Typedef Documentation

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

Print function signature.

Mapping of packet type to print function.

Constructor & Destructor Documentation

virtual MAKLogger::DtLgrHlaPacketPrinter::~DtLgrHlaPacketPrinter ( )
virtual

Virtual CTOR.

Virtual Base class CTOR DTOR

MAKLogger::DtLgrHlaPacketPrinter::DtLgrHlaPacketPrinter ( const DtLgrHlaPacketPrinter )
private

Not Implemented.

Member Function Documentation

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

Begin printing to the destination.

Reimplemented from MAKLogger::DtLgrPacketPrinter.

virtual void MAKLogger::DtLgrHlaPacketPrinter::endPrinting ( )
virtual

End printing to the destination.

Reimplemented from MAKLogger::DtLgrPacketPrinter.

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

Not Implemented.

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

Get the current output stream.

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

Prints a checkpoint packet.

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

Prints an config packet.

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

Prints an date/time packet.

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

Print a tape description packet type.

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

Prints an entity table packet.

void MAKLogger::DtLgrHlaPacketPrinter::printFomPacket ( const DtPacket packet)
protected

Prints an FOM packet.

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

Prints an index table packet.

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

Prints an initial state packet.

void MAKLogger::DtLgrHlaPacketPrinter::printInteractionPacket ( const DtPacket packet)
protected

Prints an interaction packet.

void MAKLogger::DtLgrHlaPacketPrinter::printInteractionPacketData ( const DtPacket packet,
bool  printTag 
)
protected

Prints the interaction packet data with(out) tag.

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

Prints an other packet.

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

Print a single packet.

Implements MAKLogger::DtLgrPacketPrinter.

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

Print the packet header.

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

Print the packet tail.

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

Prints an pause packet.

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

Prints an recording data packet.

void MAKLogger::DtLgrHlaPacketPrinter::printRegionDescriptorSet ( const DtRegionDescSet regionSet)
protected

Prints a region descriptor set.

void MAKLogger::DtLgrHlaPacketPrinter::printRemovalPacket ( const DtPacket packet)
protected

Prints an removal packet.

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

Print a start/end data packet type.

void MAKLogger::DtLgrHlaPacketPrinter::printState ( const char *  stateBuffer,
size_t  bufferSize,
int  numberCheckpoints 
)
protected

Prints the checkpoint state records in the given buffer.

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

Prints an unpause packet.

void MAKLogger::DtLgrHlaPacketPrinter::printUpdatePacket ( const DtPacket packet)
protected

Prints an update packet.

void MAKLogger::DtLgrHlaPacketPrinter::printUpdatePacketData ( const DtPacket packet,
bool  printTag 
)
protected

Prints the update packet data with(out) tag.

Member Data Documentation

int MAKLogger::DtLgrHlaPacketPrinter::myCheckpointCount
protected

My count of checkpoint messages.

DtMessageBuffer MAKLogger::DtLgrHlaPacketPrinter::myEndMetadata
protected

The end metadata from the input file.

DtTime MAKLogger::DtLgrHlaPacketPrinter::myFileDateTime
protected

Date and time of file (seconds since epoch)

const DtLgrFileFormatter* MAKLogger::DtLgrHlaPacketPrinter::myFormatter
protected

The playback file formatter.

int MAKLogger::DtLgrHlaPacketPrinter::myInteractionCount
protected

My count of interaction messages.

DtLogger* MAKLogger::DtLgrHlaPacketPrinter::myLogger
protected

My logger object.

std::ofstream* MAKLogger::DtLgrHlaPacketPrinter::myOutputFile
protected

My output file.

DtBaseFomDesc* MAKLogger::DtLgrHlaPacketPrinter::myOutputFom
protected

The fom of the packets.

int MAKLogger::DtLgrHlaPacketPrinter::myPacketCount
protected

My count of packets.

PrintFunctionMap MAKLogger::DtLgrHlaPacketPrinter::myPrintFunctionMap
protected

My print function map.

bool MAKLogger::DtLgrHlaPacketPrinter::myPrintRawData
protected

My flag for printing raw (binary) data.

int MAKLogger::DtLgrHlaPacketPrinter::myRemovalCount
protected

My count of removal messages.

DtTime MAKLogger::DtLgrHlaPacketPrinter::myUnpauseTime
protected

File time when unpaused.

int MAKLogger::DtLgrHlaPacketPrinter::myUpdateCount
protected

My count of update messages.


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)