MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
lgrDump
lgrHlaPacketPrinter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#if DtHLA
11
12
#ifndef lgrHlaPacketPrinter_H_
13
#define lgrHlaPacketPrinter_H_
14
15
#include "
lgrDump.h
"
16
17
#include <
lgrPacketPrinter.h
>
18
#include <
hlaMessageFactory.h
>
19
#include <
messageBuffer.h
>
20
21
class
DtInteractionFactory;
22
namespace
MAKLogger
23
{
24
class
DtBaseFomDesc;
25
class
DtPacket;
26
class
DtLogger;
27
29
class
DT_DLL_LGRDUMP
DtLgrHlaPacketPrinter
:
public
DtLgrPacketPrinter
30
{
31
public
:
32
34
DT_VIRTUAL_CTR
(
DtLgrHlaPacketPrinter
,(
DtLogger
& logger,
bool
raw))
35
36
37
DT_VIRTUAL_BASE_CTR
(
DtLgrPacketPrinter
,(
DtLogger
& logger,
bool
raw))
38
39
40
virtual
~
DtLgrHlaPacketPrinter
();
41
42
private
:
44
DtLgrHlaPacketPrinter
(
const
DtLgrHlaPacketPrinter
&);
46
DtLgrHlaPacketPrinter
& operator=(
const
DtLgrHlaPacketPrinter
&);
47
48
public
:
49
51
virtual
void
beginPrinting(
const
DtMessageIOInfo
* info,
52
const
DtMessageInput
* msgInput,
const
DtString
& destination);
53
55
virtual
void
printPacket(
const
DtPacket
& packet );
56
58
virtual
void
endPrinting();
59
60
protected
:
61
63
std::ofstream& outputStream();
64
66
virtual
void
printPacketHeader(
const
DtPacket
& packet);
67
69
virtual
void
printPacketTail(
const
DtPacket
& packet);
70
72
void
printOtherPacket(
const
DtPacket
& packet);
73
75
void
printFomPacket(
const
DtPacket
& packet);
76
78
void
printConfigPacket(
const
DtPacket
& packet);
79
81
void
printDateTimePacket(
const
DtPacket
& packet);
82
84
void
printCheckpointPacket(
const
DtPacket
& packet);
85
87
void
printIndexTablePacket(
const
DtPacket
& packet);
88
90
void
printRecordingDataPacket(
const
DtPacket
& packet);
91
93
void
printEntityTablePacket(
const
DtPacket
& packet);
94
96
void
printRegionDescriptorSet(
const
DtRegionDescSet
& regionSet);
97
99
void
printInteractionPacket(
const
DtPacket
& packet);
100
102
void
printUpdatePacket(
const
DtPacket
& packet);
103
105
void
printRemovalPacket(
const
DtPacket
& packet );
106
108
void
printPausePacket(
const
DtPacket
& packet);
109
111
void
printUnpausePacket(
const
DtPacket
& packet);
112
114
typedef
void (
DtLgrHlaPacketPrinter
::*PacketPrintFunction)(
const
DtPacket
&);
116
typedef
std::map<DtPacket::DtPacketType,PacketPrintFunction>
PrintFunctionMap
;
117
118
protected
:
119
121
int
myPacketCount
;
122
124
int
myCheckpointCount
;
125
127
int
myInteractionCount
;
128
130
int
myUpdateCount
;
131
133
int
myRemovalCount
;
134
136
bool
myPrintRawData
;
137
139
PrintFunctionMap
myPrintFunctionMap
;
140
142
std::ofstream*
myOutputFile
;
143
145
DtLogger
*
myLogger
;
146
148
DtBaseFomDesc
*
myOutputFom
;
149
151
DtTime
myFileDateTime
;
152
154
DtTime
myUnpauseTime
;
155
157
DtMessageBuffer
myEndMetadata
;
158
159
};
160
}
161
162
#endif
163
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)