MAK RTIspy API Documentation for HLA Evolved
 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) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantLatencyReportMsg.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantLatencyReportMsg_H_
10 #define DtAssistantLatencyReportMsg_H_
11 
15 
16 // PLEASE NOTE: This class is duplicated as DtLatencyReportMsg
17 // in latencyReportMsg.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 "assistantMsg.h"
26 #include <map>
27 
29 class DtRtiAssistantPeer;
31 
32 typedef void (*DtAssistantLatencyReportCb)(const DtAssistantLatencyReportMsg& report, void* usr);
33 
34 
39 {
40 public:
41 
42 
44  DtAssistantLatencyReportMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
47  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
48 
50  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
51 
53  virtual ~DtAssistantLatencyReportMsg();
54 
56  virtual DtAssistantMsg* clone(bool copy = true) const;
57 
59  virtual void printData() const;
60 
62  virtual void resize( unsigned int payLoadSize );
63 
65  virtual unsigned char* payload();
66 
68  virtual const unsigned char* payload() const;
69 
71  virtual unsigned int totalSize() const;
72 
74  virtual void setTotalSize(unsigned int times);
75 
77  virtual void get(DtAveragedLatencyTestReport& report) const;
78 
80  virtual void set(const DtAveragedLatencyTestReport& report);
81 
82 public:
83 
85  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
86  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
87 
88  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
89 
92  static void addCallback(DtRtiAssistantServer* conn,
93  DtAssistantLatencyReportCb cb, void* usr);
94  static void removeCallback(DtRtiAssistantServer* conn,
95  DtAssistantLatencyReportCb cb, void* usr);
96 
99  static void addCallback(DtRtiAssistantPeer* conn,
100  DtAssistantLatencyReportCb cb, void* usr);
101  static void removeCallback(DtRtiAssistantPeer* conn,
102  DtAssistantLatencyReportCb cb, void* usr);
103 
104 
105 protected:
106 
108  virtual DtNetAssistantLatencyReportMsg* netAssistantLatencyReportMsg();
109  virtual const DtNetAssistantLatencyReportMsg* netAssistantLatencyReportMsg() const;
110 
113 
115  virtual int minSize() const;
116 
118  virtual unsigned char* timesPtr() const;
119 
121  virtual void setTime( DtAssistantReportTimeStampType type, unsigned int time );
122 
123 
124 
125 };
126 
127 #endif
Definition: netAssistantMsgHdr.h:26
DtAssistantMsgKind
Definition: assistantMsg.h:52
Base class for assistant Messages.
Definition: assistantMsg.h:152
This file contains the declaration of DtNetAssistantLatencyReportMsg.
virtual DtAssistantMsgKind internalMsgKind()=0
#define DT_DLL_ASSISTANT
_WIN32
Definition: rtiMsConfig.h:121
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:38
virtual void printData() const
DtAssistantReportTimeStampType
Definition: averagedLatencyTestReport.h:25
Defines DtAveragedLatencyTestReport used to report results of latency tests between local RTI compon...
void(* DtAssistantLatencyReportCb)(const DtAssistantLatencyReportMsg &report, void *usr)
Definition: assistantLatencyReportMsg.h:32

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)