MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantTestMgrStatusMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantTestMgrStatusMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef DtAssistantTestMgrStatusMsg_H_
10 #define DtAssistantTestMgrStatusMsg_H_
11 
15 
16 // PLEASE NOTE: This class is duplicated as DtTestMgrStatusMsg
17 // in testMgrStatusMsg.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"
25 #include <map>
26 
27 class DtRtiAssistantPeer;
30 
31 typedef void (*DtAssistantTestMgrStatusCb)(const DtAssistantTestMgrStatusMsg& report, void* usr);
32 
33 
38 {
39 public:
40 
41 
43  DtAssistantTestMgrStatusMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
44 
45  DtAssistantTestMgrStatusMsg( bool testingEnabled,
46  bool testCapable,
47  bool isContinuous,
48  bool inProgress,
49  int numInitiated = 0,
50  int numReports = 0,
51  unsigned long federationHdl = 0,
52  unsigned long federateHdl = 0,
53  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
54 
56  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
57 
59  virtual ~DtAssistantTestMgrStatusMsg();
60 
62  virtual DtAssistantMsg* clone(bool copy = true) const;
63 
65  virtual void printData() const;
66 
68  virtual bool testingEnabled() const;
69 
71  virtual bool testCapable() const;
72 
74  virtual bool continuousTesting() const;
75 
77  virtual bool testInProgress() const;
78 
80  virtual unsigned numTestsInitiated() const;
81 
83  virtual unsigned numTestReports() const;
84 
87  virtual unsigned long federationHdl() const;
88 
91  virtual unsigned long federateHdl() const;
92 
93 public:
94 
96  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
97  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
98 
99  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
100 
103  static void addCallback(DtRtiAssistantServer* conn,
104  DtAssistantTestMgrStatusCb cb, void* usr);
105  static void removeCallback(DtRtiAssistantServer* conn,
106  DtAssistantTestMgrStatusCb cb, void* usr);
107 
110  static void addCallback(DtRtiAssistantPeer* conn,
111  DtAssistantTestMgrStatusCb cb, void* usr);
112  static void removeCallback(DtRtiAssistantPeer* conn,
113  DtAssistantTestMgrStatusCb cb, void* usr);
114 
115 protected:
116 
118  virtual DtNetAssistantTestMgrStatusMsg* netAssistantTestMgrStatusMsg();
119  virtual const DtNetAssistantTestMgrStatusMsg* netAssistantTestMgrStatusMsg() const;
120 
123 
124 };
125 
126 #endif

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)