MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantLatencyReportMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2024 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
11 
12 // PLEASE NOTE: This class is duplicated as DtLatencyReportMsg.
13 // Any changes made to this class should also be made there.
14 
15 #include "assistantMsg.h"
17 
19 
20 #include <vlutil/vlString.h>
21 #include <vlutil/vlUtil.h>
22 
23 #include <map>
24 
26 class DtRtiAssistantPeer;
28 
29 typedef void (*DtAssistantLatencyReportCb)(const DtAssistantLatencyReportMsg& report, void* usr);
30 
34 {
35 public:
36 
38 
39  DtAssistantLatencyReportMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40  DtAssistantLatencyReportMsg(const DtAveragedLatencyTestReport& rep, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41  DtAssistantLatencyReportMsg(const DtNetAssistantLatencyReportMsg* netRepMsg, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  virtual ~DtAssistantLatencyReportMsg();
46 
48  virtual DtAssistantMsg* clone(bool copy = true) const;
49 
51  virtual void printData() const;
52 
54  virtual void get(DtAveragedLatencyTestReport& report) const;
55 
57  virtual void set(const DtAveragedLatencyTestReport& report);
58 
59 public:
60 
62 
63  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
66 
68 
69  static void addCallback(DtRtiAssistantServer* conn, DtAssistantLatencyReportCb cb, void* usr);
70  static void removeCallback(DtRtiAssistantServer* conn, DtAssistantLatencyReportCb cb, void* usr);
72 
75 
76  static void addCallback(DtRtiAssistantPeer* conn, DtAssistantLatencyReportCb cb, void* usr);
77  static void removeCallback(DtRtiAssistantPeer* conn, DtAssistantLatencyReportCb cb, void* usr);
79 
80 protected:
81 
83 
84  virtual DtNetAssistantLatencyReportMsg* netAssistantLatencyReportMsg();
85  virtual const DtNetAssistantLatencyReportMsg* netAssistantLatencyReportMsg() const;
87 
90 
92  virtual int minSize(DtAveragedLatencyTestReport const* report=nullptr) const;
93 
95  virtual void resize(unsigned int reportSize);
96 
98 
99  virtual unsigned int reportSize() const;
100  virtual void setReportSize(unsigned int times);
102 
104  virtual unsigned char* reportPtr() const;
105 
107 
108 // virtual unsigned char* payload();
109 // virtual const unsigned char* payload() const;
111 
112 };
Definition: netAssistantMsgHdr.h:26
DtAssistantMsgKind
Definition: assistantMsg.h:54
Base class for assistant Messages.
Definition: assistantMsg.h:154
This file contains the declaration of DtNetAssistantLatencyReportMsg.
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
Default – Unix or Win32 static.
Definition: rtiMsConfig.h:150
Network representation for the RTI Assistant latency Report msg message.
Definition: netAssistantLatencyReportMsg.h:28
DtAveragedLatencyTestReport encodes and decodes reports from tests between local RTI components...
Definition: averagedLatencyTestReport.h:48
DtRtiAssistantPeer manages the sharing of information between one Assistant to other Assistants using...
Definition: rtiAssistantPeer.h:82
Manages the server connections of the RTI Assistant.
Definition: rtiAssistantServer.h:45
virtual DtAssistantMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
The DtAssistantLatencyReportMsg defines a msg for a client to report the results of a latency test...
Definition: assistantLatencyReportMsg.h:33
virtual void printData() const
Defines DtAveragedLatencyTestReport used to report results of latency tests between local RTI compon...
void(* DtAssistantLatencyReportCb)(const DtAssistantLatencyReportMsg &report, void *usr)
Definition: assistantLatencyReportMsg.h:29

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)