MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
latencyReportMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: latencyReportMsg.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtLatencyReportMsg_H_
10 #define DtLatencyReportMsg_H_
11 
15 
16 // PLEASE NOTE: This class is duplicated as DtAssistantLatencyReportMsg
17 // in assistantLatencyReportMsg.h. Any changes made to this class
18 // should also be made there.
19 
20 #include <vlutil/vlString.h>
21 #include <vlutil/vlUtil.h>
22 
23 #include "rtiMsg.h"
24 #include "netLatencyReportMsg.h"
26 #include <map>
27 
28 class DtConnectionMgr;
29 class DtLatencyReportMsg;
30 
31 typedef void (*DtLatencyReportCb)(const DtLatencyReportMsg& report, void* usr);
32 
33 
38 {
39 public:
40 
41 
43  DtLatencyReportMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
46  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
47 
49  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
50 
52  virtual ~DtLatencyReportMsg();
53 
55  virtual DtRtiMsg* clone(bool copy = true) const;
56 
58  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
59 
61  virtual unsigned char* encodedReport();
62 
64  virtual const unsigned char* encodedReport() const;
65 
67  virtual unsigned int encodedReportSize() const;
68 
70  virtual void setEncodedReportSize(unsigned int times);
71 
73  virtual void get(DtAveragedLatencyTestReport& report) const;
74 
76  virtual void set(const DtAveragedLatencyTestReport& report, bool adjustBufferSize = true);
77 
78 public:
79 
81  static DtRtiMsg* create(const DtNetMsgHeader* initial,
82  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
83 
84  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
85 
88  static void addCallback(DtConnectionMgr* conn,
89  DtLatencyReportCb cb, void* usr);
90  static void removeCallback(DtConnectionMgr* conn,
91  DtLatencyReportCb cb, void* usr);
92 
93 
94 protected:
95 
97  virtual DtNetLatencyReportMsg* netLatencyReportMsg();
98  virtual const DtNetLatencyReportMsg* netLatencyReportMsg() const;
99 
102 
104  virtual int minSize() const;
105 
106  virtual int minSize(const DtAveragedLatencyTestReport& report) const;
107 };
108 
109 #endif
void(* DtLatencyReportCb)(const DtLatencyReportMsg &report, void *usr)
Definition: latencyReportMsg.h:31
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
This file contains the declaration of DtNetLatencyReportMsg.
DtAveragedLatencyTestReport encodes and decodes reports from tests between local RTI components...
Definition: averagedLatencyTestReport.h:48
The DtLatencyReportMsg defines a msg for a client to report the results of a latency test...
Definition: latencyReportMsg.h:37
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
Network representation for the RTI latency Report message.
Definition: netLatencyReportMsg.h:27
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Defines DtAveragedLatencyTestReport used to report results of latency tests between local RTI compon...
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)