MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrPacketBreakdownPrinter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrPacketBreakdownPrinter_H_
11 #define lgrPacketBreakdownPrinter_H_
12 
13 #include <lgrGui/lgrGui.h>
14 
16 #include <lgrCore/lgrDataViewSet.h>
18 #include <vlutil/vlString.h>
19 
20 #include <vector>
21 
22 namespace MAKLogger
23 {
24  class DtLgrDataViewComponent;
25  class DtLgrEntityTracker;
26 
30  {
32  : time(0.0), type(0), size(0), changedSize(0), isDis(false),
33  typeCode(-1) {}
34 
35  double time;
36  int type;
37  DtString typeName;
38  DtString objectName;
39  DtString marking;
40  DtString entityId;
41  DtString interactionName;
42  size_t size;
43  size_t changedSize;
44  DtString attributeSummary;
45  bool isDis;
46  int typeCode;
47  };
48 
49  typedef std::vector<DtLgrPacketBreakdownRecord> DtLgrPacketBreakdownRecordList;
50 
60  {
61  public:
62 
64 
65 
66  virtual ~DtLgrPacketBreakdownPrinter();
67 
69  virtual void beginPrinting(const DtMessageIOInfo* info,
70  const DtMessageInput* fileInput, const DtString& destination);
71 
73  virtual void printPacket(const DtPacket& packet);
74 
76  virtual void endPrinting();
77 
79  static DtString theExportType;
80 
81  protected:
82 
84 
87 
93 
96  };
97 }
98 
99 #endif
A single decoded record describing one packet (PDU/Update) that falls within a selected Packet Count ...
Definition: lgrPacketBreakdownPrinter.h:29
DtLgrDataViewSetSP myClassifier
Classifier used to resolve each packet into the same Update/Interaction category the histogram uses...
Definition: lgrPacketBreakdownPrinter.h:92
A printer which collects a detailed breakdown of the packets in a time section so they can be present...
Definition: lgrPacketBreakdownPrinter.h:59
DtLgrPacketBreakdownRecord()
Definition: lgrPacketBreakdownPrinter.h:31
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
DtString objectName
Object name (HLA instance) or entity type (DIS); may be empty.
Definition: lgrPacketBreakdownPrinter.h:38
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
size_t size
Packet size in bytes.
Definition: lgrPacketBreakdownPrinter.h:42
The message input is the interface for objects that provide messages into the pipeline.
Definition: messageInput.h:22
size_t changedSize
Changed value bytes (HLA); 0 when not applicable.
Definition: lgrPacketBreakdownPrinter.h:43
static DtString theExportType
The name of the export type.
Definition: lgrPacketBreakdownPrinter.h:79
DtString typeName
Human readable packet type (PDU kind for DIS).
Definition: lgrPacketBreakdownPrinter.h:37
std::shared_ptr< DtLgrDataViewSet > DtLgrDataViewSetSP
Definition: lgrDataViewSet.h:27
double time
Packet arrival time in seconds.
Definition: lgrPacketBreakdownPrinter.h:35
bool isDis
True for DIS packets (PDU kind terminology applies).
Definition: lgrPacketBreakdownPrinter.h:45
Abstract interface for a packet printer class.
Definition: lgrPacketPrinter.h:25
A message IO info object stores information about a specific message input or output stage...
Definition: messageIoInfo.h:21
DtString attributeSummary
Per-attribute name/size list for HLA updates (may be empty).
Definition: lgrPacketBreakdownPrinter.h:44
std::vector< DtLgrPacketBreakdownRecord > DtLgrPacketBreakdownRecordList
Definition: lgrPacketBreakdownPrinter.h:49
int type
DtPacket::DtPacketType value.
Definition: lgrPacketBreakdownPrinter.h:36
A generic packed of typed binary data.
Definition: packet.h:41
Definition: lgrDataViewComponent.h:29
DtString marking
Resolved entity marking (may be empty).
Definition: lgrPacketBreakdownPrinter.h:39
#define DT_DLL_LGRGUI
Definition: lgrGui.h:19
Indexes packets in a file.
Definition: lgrEntityTracker.h:32
Contains MAKLogger::DtLgrDataViewSet class.
DtString entityId
DIS-style site:app:entity id (DIS only; may be empty).
Definition: lgrPacketBreakdownPrinter.h:40
Defines INPORT/EXPORT macros for lgrGui library.
DtLgrDataViewComponent * myDataView
Definition: lgrPacketBreakdownPrinter.h:83
DtString interactionName
Interaction type name for interaction PDUs (may be empty).
Definition: lgrPacketBreakdownPrinter.h:41
int typeCode
Numeric DIS PDU kind, or -1 when not applicable.
Definition: lgrPacketBreakdownPrinter.h:46
const DtLgrEntityTracker * myEntityTracker
Entity tracker for the current file (not owned). May be null.
Definition: lgrPacketBreakdownPrinter.h:86
Contains MAKLogger::DtLgrPacketPrinter class.
DtLgrPacketBreakdownRecordList myRecords
Records collected during the current print pass.
Definition: lgrPacketBreakdownPrinter.h:95

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)