MAK RTIspy API Documentation for HLA 1.3
assistant.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef assistant_H_
7 #define assistant_H_
8 
11 
12 #include "rtiMsConfig.h"
13 #include "assistantShutdownMsg.h"
14 #include "assistantCommandMsg.h"
15 #include "assistantShowDialogMsg.h"
16 #include "rtiUtil.h"
17 #include "assistantSignalRouter.h"
18 #include <vlutil/vlSmartPointers.h>
19 
21 class DtRtiAssistantPeer;
23 class DtAssistantMgr;
40 class QApplication;
41 class QTimer;
42 
51 {
52 public:
53 
55  DtRtiAssistant( int argc, char** argv,
56  bool autoExit,
59 
61  ~DtRtiAssistant();
62 
63 private:
64 
67 
69  DtRtiAssistant& operator= (DtRtiAssistant const& );
70 
71 public:
72 
74  static void tick( void* usr );
75  void tick();
76 
77 protected:
78 
82  virtual void initializeAssistantServer(int argc, char**argv,
84 
88  virtual bool processCommands(DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog,
90 
91 
97  virtual bool showDialogOnConnectedAssistant(DtAssistantShowDialogMsg::DtAssistantShowDialogEnum dialog);
98 
103  virtual void sendShutdownToConnectedAssistant(DtAssistantShutdownMsg::DtShutdownEnum shouldShutDown);
104 
109  virtual bool connectToAssistant();
110 
112 
113 
115  static void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg, void* usr );
116 
118  virtual void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg );
119 
121 
123  static void processShutdown(void* usr);
124 
126  virtual void processShutdown( bool shouldConfirm );
127 
128 protected:
129 
130  typedef std::vector<DtAssistantMgr*> DtAssistantMgrVector;
131 
133  DtBoost::shared_ptr<DtRtiAssistantServer> myServer;
134 
136  DtBoost::shared_ptr<DtRtiAssistantPeer> myPeer;
137 
139  QApplication* myQApp;
140 
142 
143 
144 
145  DtBoost::shared_ptr<DtAssistantComponentMgr> myCompMgr;
146 
149  DtBoost::shared_ptr<DtAssistantPreferencesInfoMgr> myPrefMgr;
150 
153  DtBoost::shared_ptr<DtAssistantConnectionInfoMgr> myConnInfoMgr;
154 
157  DtBoost::shared_ptr<DtAssistantFederationsInfoMgr> myFederationInfoMgr;
158 
161  DtBoost::shared_ptr<DtAssistantNetworkCompInfoMgr> myNetworkCompInfoMgr;
162 
164  DtBoost::shared_ptr<DtAssistantTrayIconMgr> myTrayIconMgr;
165 
167  DtBoost::shared_ptr<DtAssistantLogFileMgr> myLogFileMgr;
168 
170  DtBoost::shared_ptr<DtAssistantPopupMsgMgr> myPopupMgr;
171 
174  DtBoost::shared_ptr<DtAssistantConnQueryMgr> myConnQueryMgr;
175 
178  DtBoost::shared_ptr<DtAssistantLicenseQueryMgr> myLicQueryMgr;
179 
182  DtBoost::shared_ptr<DtAssistantLatencyTestMgr> myLatTestMgr;
183 
186  DtBoost::shared_ptr<DtAssistantPreferencesViewMgr> myPrefViewMgr;
187 
190  DtBoost::shared_ptr<DtAssistantFederationsViewMgr> myFederationsViewMgr;
192 
195  DtBoost::shared_ptr<DtAssistantFederateViewMgr> myFederateViewMgr;
197 
200  DtBoost::shared_ptr<DtAssistantFomViewMgr> myFomViewMgr;
202 
205 
208 
211 
213  QTimer* myTickTimer;
214 
217 
220 
224 
227 
229  DtTime myExitTime;
230 
232  DtClock myClock;
233 
235  DtBoost::shared_ptr< DtFilePrinter > myLogPrinter;
236 
238  MAKRti::DtString myAssistantLogName;
239 
242 };
243 
244 #endif
245 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)