VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages

exConnInterface.h

/******************************************************************************
** Copyright (c) 2015 MAK Technologies, Inc.
** All rights reserved.
******************************************************************************/
#pragma once
#include <vl/exerciseConn.h>
//This class manages passing calls and data from the main (display engine) thread
//to the driver thread, which is what is ticking the DtExerciseConn.
{
public:
//Construction is done by the driver thread.
: myDriver(driver)
, myExConn(0)
{
if (connection)
{
myExConn = connection->exerciseConn();
}
}
//These functions may be called from a thread other than the driver thread.
void sendCommentInteraction(const DtString& data)
{
//Queue the execute function to be run by the driver thread.
//This bind function puts the arguments into the queue as well, which
//will then be processed by the execute function in the other thread.
}
protected:
//This is the function will get called in the driver thread, and can
//make the normal calls on the exercise connection.
DtExerciseConn* myExConn;
};

exConnInterface.cxx

/******************************************************************************
** Copyright (c) 2015 MAK Technologies, Inc.
** All rights reserved.
******************************************************************************/
#include <vl/commentInteraction.h>
{
if (myExConn)
{
DtCommentInteraction commentInteraction;
commentInteraction.setComment(commentString.c_str(), commentString.size());
myExConn->sendStamped(commentInteraction);
}
}

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)