VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DistributedSimulationDriver2B.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCore/DtDriver.h>
12 #include <vlutil/vlRunnable.h>
13 #include <vlutil/vlThread.h>
14 
15 class DtExerciseConn;
16 class DtThread;
17 class DtThreadStart;
18 
19 namespace makVrv
20 {
21 namespace tutorialDistributedSimulation2B
22 {
23 
25  protected DtRunnable
26 {
27 public:
28 
31 
34 
36  virtual const std::string& className() const;
37 
39  DtExerciseConn* connection()
40  {
41  return myConnection;
42  }
43 
44 protected:
45 
48  virtual bool onStart();
49 
51  virtual bool onStop();
52 
54  virtual bool onTick();
55 
57  virtual void run();
58 
61  void startThread();
62 
65  void stopThread();
66 
67 protected:
68 
69  DtExerciseConn* myConnection;
71 
73  //Cross thread variables. They are used between the two threads for
74  //communication.
75  DtThreadStartSP myStart;
76  DtThread* myThread;
78 };
79 
80 }
81 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)