MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistant.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
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;
37 class DtRidConfigViewMgr;
44 class QApplication;
45 class QTimer;
46 
54 {
55 public:
56 
58  DtRtiAssistant( int& argc, char** argv, bool autoExit,
61  bool disableMulticast = false );
62 
64  virtual ~DtRtiAssistant();
65 
67  static void tick( void* usr );
68  void tick();
69 
70 protected:
71 
75  virtual void initializeAssistantServer( int& argc, char**argv,
77 
81  virtual bool processCommands( DtAssistantShowDialogMsg::DtAssistantShowDialogEnum showDialog,
83 
89  virtual bool showDialogOnConnectedAssistant(DtAssistantShowDialogMsg::DtAssistantShowDialogEnum dialog);
90 
95  virtual void sendShutdownToConnectedAssistant(DtAssistantShutdownMsg::DtShutdownEnum shouldShutDown);
96 
101  virtual bool connectToAssistant();
102 
105 
107  static void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg, void* usr );
108 
110  virtual void processAssistantShutdownMsg( const DtAssistantShutdownMsg& msg );
111 
113 
115  static void processShutdown( void* usr );
116 
118  virtual void processShutdown( bool shouldConfirm );
119 
120 private:
121 
123  DtRtiAssistant( const DtRtiAssistant& );
124 
126  DtRtiAssistant& operator = ( const DtRtiAssistant& );
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 
143 
146  DtBoost::shared_ptr<DtAssistantComponentMgr> myCompMgr;
147 
150  DtBoost::shared_ptr<DtAssistantPreferencesInfoMgr> myPrefMgr;
151 
154  DtBoost::shared_ptr<DtAssistantRidConfigInfoMgr> myRidInfoMgr;
155 
158  DtBoost::shared_ptr<DtAssistantConnectionInfoMgr> myConnInfoMgr;
159 
162  DtBoost::shared_ptr<DtAssistantFederationsInfoMgr> myFederationInfoMgr;
163 
166  DtBoost::shared_ptr<DtAssistantForwarderCompInfoMgr> myForwarderInfoMgr;
167 
169  DtBoost::shared_ptr<DtAssistantTrayIconMgr> myTrayIconMgr;
170 
172  DtBoost::shared_ptr<DtAssistantLogFileMgr> myLogFileMgr;
173 
175  DtBoost::shared_ptr<DtAssistantPopupMsgMgr> myPopupMgr;
176 
179  DtBoost::shared_ptr<DtAssistantConnQueryMgr> myConnQueryMgr;
180 
183  DtBoost::shared_ptr<DtAssistantLicenseQueryMgr> myLicQueryMgr;
184 
187  DtBoost::shared_ptr<DtAssistantLatencyTestMgr> myLatTestMgr;
188 
191  DtBoost::shared_ptr<DtAssistantPreferencesViewMgr> myPrefViewMgr;
192 
195  DtBoost::shared_ptr<DtRidConfigViewMgr> myRidConfigViewMgr;
196 
199  DtBoost::shared_ptr<DtAssistantFederationsViewMgr> myFederationsViewMgr;
200 
203  DtBoost::shared_ptr<DtAssistantFederateViewMgr> myFederateViewMgr;
204 
207  DtBoost::shared_ptr<DtAssistantFomViewMgr> myFomViewMgr;
208 
210  DtBoost::shared_ptr<DtRemoteAssistantViewMgr> myRemoteAssistantViewMgr;
211 
214  DtBoost::shared_ptr<DtRemoteAssistantInfoMgr> myRemoteAssistantInfoMgr;
215 
217 
220 
223 
226 
228  QTimer* myTickTimer;
229 
232 
235 
239 
242 
244  DtTime myExitTime;
245 
247  DtClock myClock;
248 
250  DtBoost::shared_ptr< DtFilePrinter > myLogPrinter;
251 
253  MAKRti::DtString myAssistantLogName;
254 
257 
258 };

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)