MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
testMgrStatusMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: testMgrStatusMsg.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtTestMgrStatusMsg_H_
10 #define DtTestMgrStatusMsg_H_
11 
15 
16 // PLEASE NOTE: This class is duplicated as DtAssistantTestMgrStatusMsg
17 // in assistantTestMgrStatusMsg.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 "netTestMgrStatusMsg.h"
25 #include <map>
26 
27 class DtConnectionMgr;
28 class DtTestMgrStatusMsg;
29 
30 typedef void (*DtTestMgrStatusCb)(const DtTestMgrStatusMsg& report, void* usr);
31 
32 
37 {
38 public:
39 
40 
42  DtTestMgrStatusMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
44  DtTestMgrStatusMsg( int fedExHandle,
45  int fedHandle,
46  bool testingEnabled,
47  bool testCapable,
48  bool isContinuous,
49  bool inProgress,
50  int numInitiated,
51  int numReports,
52  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
53 
55  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
56 
58  virtual ~DtTestMgrStatusMsg();
59 
61  virtual DtRtiMsg* clone(bool copy = true) const;
62 
64  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
65 
67  virtual bool testingEnabled() const;
68 
70  virtual bool testCapable() const;
71 
73  virtual bool continuousTesting() const;
74 
76  virtual bool testInProgress() const;
77 
79  virtual unsigned numTestsInitiated() const;
80 
82  virtual unsigned numTestReports() const;
83 
84 public:
85 
87  static DtRtiMsg* create(const DtNetMsgHeader* initial,
88  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
89 
90  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
91 
94  static void addCallback(DtConnectionMgr* conn,
95  DtTestMgrStatusCb cb, void* usr);
96  static void removeCallback(DtConnectionMgr* conn,
97  DtTestMgrStatusCb cb, void* usr);
98 
99 
100 protected:
101 
103  virtual DtNetTestMgrStatusMsg* netTestMgrStatusMsg();
104  virtual const DtNetTestMgrStatusMsg* netTestMgrStatusMsg() const;
105 
108 
109 };
110 
111 #endif
DtRtiMsgKind
Definition: rtiMsgKind.h:9
This file contains the declaration of DtNetTestMgrStatusMsg.
Definition: netRtiMsgHdr.h:23
The DtTestMgrStatusMsg defines a msg for a client to report the results of a latency test...
Definition: testMgrStatusMsg.h:36
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Network representation for the RTI latency Report msg message.
Definition: netTestMgrStatusMsg.h:27
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
void(* DtTestMgrStatusCb)(const DtTestMgrStatusMsg &report, void *usr)
Definition: testMgrStatusMsg.h:30
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)