VR-Forces 4.0.4 Class Documentation
examples/networkCallbackManager/networkCallbackManagerAccessory.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 <vrfVrlSharedSource/vrfProtocol.h>
00014 #include <vrvCore/DtBaseAccessory.h>
00015 #include <vrfVrlSharedSource/DtVrfDriver.h>
00016 
00017 namespace makVrv
00018 {
00019    class DtConnection;
00020    class DtVrlinkDriver;
00021 }
00022 
00023 namespace makVrf
00024 {
00025    class DtNetworkMessageInterface;
00026 };
00027 
00028 //\brief This class defines an accessory that will install itself
00029 //into DtVrlinkDriver objects and print out the esr of entities
00030 //as they are discovered.
00031 class DtNetworkCallbackManagerAccessory : public makVrv::DtBaseAccessory
00032 {
00033 public:
00034    //\Default constructor
00035    DtNetworkCallbackManagerAccessory();
00036 
00037    //\Default destructor
00038    virtual ~DtNetworkCallbackManagerAccessory();
00039 
00040    //\brief Called when this accessory is installed into a connector.
00041    virtual void install(makVrv::DtDriver* driver);
00042 
00043    //\brief Called when this accessory is uninstalled
00044    virtual void uninstall(makVrv::DtDriver* baseConn);
00045 
00046    //\brief Called to find out if this accessory is compatible with a
00047    //particular connector. In this case, it is compatible with any
00048    //DtVrlinkDriver of the correct protocol
00049    virtual bool isCompatible(makVrv::DtDriver* driver);
00050 
00051    //\brief Called when an interaction or pdu is received.  Will send notification through
00052    //the VRF driver
00053    virtual void received(makVrf::DtNetworkMessageInterface*);
00054 
00055 protected:
00056 
00057    //\brief Called when the driver creates a new connection
00058    virtual void slot_onSimCreated(makVrv::DtConnection* connection);
00059 
00060    //\brief Called when a sim connection is connected
00061    virtual void slot_onSimConnected(makVrv::DtConnection* connection);
00062 
00063    //\brief Called when a sim connection is disconnected
00064    virtual void slot_onSimAboutToBeDisconnected(makVrv::DtConnection* connection);
00065 
00066    //Sends out a PDU or interaction with hard coded values given a particular protoco;
00067    virtual void slot_onSendPdu(makVrv::DtConnection* connection);
00068 protected:
00069    makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfDriver* myDriver;
00070 };

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)