VR-Forces 4.1.1 Class Documentation
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 
14 class DtExerciseConn;
15 class DtThread;
16 class DtThreadStart;
17 
18 namespace makVrv
19 {
20 namespace tutorialDistributedSimulation2B
21 {
22 
24  protected DtRunnable
25 {
26 public:
27 
30 
33 
35  virtual const std::string& className() const;
36 
38  DtExerciseConn* connection()
39  {
40  return myConnection;
41  }
42 
43 protected:
44 
47  virtual bool onStart();
48 
50  virtual bool onStop();
51 
53  virtual bool onTick();
54 
56  virtual void run();
57 
60  void startThread();
61 
64  void stopThread();
65 
66 protected:
67 
68  DtExerciseConn* myConnection;
70 
72  //Cross thread variables. They are used between the two threads for
73  //communication.
74  DtThreadStart* myStart;
75  DtThread* myThread;
77 };
78 
79 }
80 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)