VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 DtExerciseConnection.
{
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)