VR-Forces 4.0.4 Class Documentation
examples/addAttr/addAttrGui/DtAddAttrGuiAccessory.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtAddAttrGuiAccessory.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00009 //\file DtAddAttrGuiAccessory.h
00010 //\brief Contains DtAddAttrGuiAccessory class.  Used to install extensions to the FOM
00011 //for mass
00012 
00013 //Include this header file to get all protocol dependent header files
00014 //and #defines defined, specifically:
00016 //DT_PROTOCOL_NAMESPACE
00017 //VRF_PROTOCOL_NAMESPACE
00018 #pragma once
00019 
00020 #include <vrfVrlSharedSource/vrfProtocol.h>
00021 #include <vrvCore/DtBaseAccessory.h>
00022 #include <vrvCore/DtEntityState.h>
00023 #include <vrfVrlSharedSource/DtVrfDriver.h>
00024 
00025 namespace makVrv
00026 {
00027    class DtConnection;
00028 }
00029 
00030 namespace makVrf
00031 {
00032    namespace VRF_PROTOCOL_NAMESPACE
00033    {
00034       class DtVrfDriver;
00035    }
00036 }
00037 
00038 //\brief This class defines an accessory that will install itself
00039 //into DtVrlinkDriver objects and print out the esr of entities
00040 //as they are discovered.
00041 class DtAddAttrGuiAccessory : public makVrv::DtBaseAccessory
00042 {
00043 public:
00044    //\Default constructor
00045    DtAddAttrGuiAccessory();
00046 
00047    //\Default destructor
00048    virtual ~DtAddAttrGuiAccessory();
00049 
00050    //\brief Called when this accessory is installed into a connector.
00051    virtual void install(makVrv::DtDriver* driver);
00052 
00053    //\brief Called when this accessory is uninstalled
00054    virtual void uninstall(makVrv::DtDriver* baseConn);
00055 
00056    //\brief Called to find out if this accessory is compatible with a
00057    //particular connector. In this case, it is compatible with any
00058    //DtVrlinkDriver of the correct protocol
00059    virtual bool isCompatible(makVrv::DtDriver* driver);
00060 
00061 protected:
00062 
00063    //\brief Called when the driver creates a new connection
00064    virtual void slot_onSimCreated(makVrv::DtConnection* connection);
00065 
00066    //\brief Called when a sim connection is connected
00067    virtual void slot_onSimConnected(makVrv::DtConnection* connection);
00068 
00069    //\brief Called when a sim connection is disconnected
00070    virtual void slot_onSimAboutToBeDisconnected(makVrv::DtConnection* connection);
00071 
00072    //\brief Called when state view is updated for entity state
00073    virtual void slot_stateUpdated(makVrv::DtUniqueID listenerId, const makVrv::DtVrlinkSimulatedBaseState& s);
00074 
00075    //\brief Called when the Vrf Driver has complete its setup.  Safe to connect to data processor signals
00076    virtual void slot_onConnectionSetupComplete();
00077 
00078 protected:
00079    makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfDriver* myDriver;
00080 };

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)