MAK RTIspy API Documentation for HLA Evolved
 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 void resize( unsigned int payLoadSize );
62 
64  virtual unsigned char* payload();
65 
67  virtual const unsigned char* payload() const;
68 
70  virtual unsigned int totalSize() const;
71 
73  virtual void setTotalSize(unsigned int times);
74 
76  virtual void get(DtAveragedLatencyTestReport& report) const;
77 
79  virtual void set(const DtAveragedLatencyTestReport& report);
80 
81 public:
82 
84  static DtRtiMsg* create(const DtNetMsgHeader* initial,
85  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
86 
87  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
88 
91  static void addCallback(DtConnectionMgr* conn,
92  DtLatencyReportCb cb, void* usr);
93  static void removeCallback(DtConnectionMgr* conn,
94  DtLatencyReportCb cb, void* usr);
95 
96 
97 protected:
98 
100  virtual DtNetLatencyReportMsg* netLatencyReportMsg();
101  virtual const DtNetLatencyReportMsg* netLatencyReportMsg() const;
102 
105 
107  virtual int minSize() const;
108 
110  virtual unsigned char* timesPtr() const;
111 
113  virtual void setTime( DtAssistantReportTimeStampType type, unsigned int time );
114 
115 
116 
117 };
118 
119 #endif
void(* DtLatencyReportCb)(const DtLatencyReportMsg &report, void *usr)
Definition: latencyReportMsg.h:31
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
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:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
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
DtAssistantReportTimeStampType
Definition: averagedLatencyTestReport.h:25
static unsigned long totalSize(const void *buffer)
Extracts the message total size form the given buffer.
virtual void setTime(const RTI::FedTime &time)
Set/Get time Used in timestamped messages.
Defines DtAveragedLatencyTestReport used to report results of latency tests between local RTI compon...
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126

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)