VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exConnInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 #include <vl/exerciseConn.h>
12 
13 //This class manages passing calls and data from the main (display engine) thread
14 //to the driver thread, which is what is ticking the DtExerciseConn.
16 {
17 public:
18  //Construction is done by the driver thread.
20  : myDriver(driver)
21  , myExConn(0)
22  {
25  if (connection)
26  {
27  myExConn = connection->exerciseConn();
28  }
29  }
30 
31  //These functions may be called from a thread other than the driver thread.
32  void sendCommentInteraction(const DtString& data)
33  {
34  //Queue the execute function to be run by the driver thread.
35  //This bind function puts the arguments into the queue as well, which
36  //will then be processed by the execute function in the other thread.
39  }
40 
42 protected:
43 
44  //This is the function will get called in the driver thread, and can
45  //make the normal calls on the exercise connection.
46  void executeSendCommentInteraction(DtString commentString);
47 
49  DtExerciseConn* myExConn;
50 };
51 
DtExConnInterface(makVrv::DtVrlinkDriver *driver)
Definition: exConnInterface.h:19
makVrv::DtVrlinkDriver * myDriver
Definition: exConnInterface.h:48
static DtExConnInterface * theExConnInterface
Definition: exConnInterface.h:41
DtExerciseConn * myExConn
Definition: exConnInterface.h:49
void sendCommentInteraction(const DtString &data)
Definition: exConnInterface.h:32
binderNoArgs< _Fn > bind(const _Fn &_Func, const _Ty &_Left)
Definition: DtSTLUtilities.h:76
Definition: exConnInterface.h:15
void executeSendCommentInteraction(DtString commentString)

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)