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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)