MAK RTIspy API Documentation for HLA 1516
 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

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)