VR-Forces 4.0.4 Class Documentation
examples/guiSendInteraction/guiExConnAccessory.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00006 #ifndef DT_PROTOCOL_NAMESPACE
00007 #error Namespace Protocol Macro DT_PROTOCOL_NAMESPACE not defined.
00008 #endif
00009 
00010 #pragma once
00011 
00012 #include <vrvCore/DtBaseAccessory.h>
00013 
00014 #ifdef DtHLA
00015    #ifndef DtHLA_1516
00016       #include <vrvHla13/vrvHla13.h>
00017    #else
00018       #include <vrvHla1516/vrvHla1516.h>
00019    #endif
00020 #endif
00021 
00022 #include <vrfVrlSharedSource/DtVrfDriver.h>
00023 
00024 namespace makVrv
00025 {
00026    class DtConnection;
00027    class DtVrlinkDriver;
00028 }
00029 
00030 
00031       //This class defines an accessory that will install itself
00032       //into DtVrlinkDriver.
00033       //It creates the DtExConnInterface class when the exercise connection
00034       //is created.
00035       class DtGuiExConnAccessory : public makVrv::DtBaseAccessory
00036       {
00037       public:
00038          DtGuiExConnAccessory();
00039 
00040          virtual ~DtGuiExConnAccessory();
00041 
00042          //Called when this accessory is installed into a connector.
00043          virtual void install(makVrv::DtDriver* driver);
00044 
00045          //Called when this accessory is uninstalled
00046          virtual void uninstall(makVrv::DtDriver* baseConn);
00047 
00048          //Called to find out if this accessory is compatible with a
00049          //particular connector. In this case, it is compatible with any
00050          //DtVrlinkDriver of the correct protocol
00051          virtual bool isCompatible(makVrv::DtDriver* driver);
00052 
00053       protected:
00054 
00055          //Called when the driver creates a new connection
00056          virtual void slot_onSimCreated(makVrv::DtConnection* connection);
00057 
00058          //Called when a sim connection is connected
00059          virtual void slot_onSimConnected(makVrv::DtConnection* connection);
00060 
00061          //Called when a sim connection is disconnected
00062          virtual void slot_onSimAboutToBeDisconnected(makVrv::DtConnection* connection);
00063 
00064       protected:
00065          makVrv::DtVrlinkDriver* myDriver;
00066       };
00067 
00068 #include "guiExConnAccessory.inl"

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)