VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addAttr
addAttrGui
DtAddAttrGuiAccessory.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAddAttrGuiAccessory.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
9
//\file DtAddAttrGuiAccessory.h
10
//\brief Contains DtAddAttrGuiAccessory class. Used to install extensions to the FOM
11
//for mass
12
13
//Include this header file to get all protocol dependent header files
14
//and #defines defined, specifically:
16
//DT_PROTOCOL_NAMESPACE
17
//VRF_PROTOCOL_NAMESPACE
18
#pragma once
19
20
#include <
vrfVrlSharedSource/vrfProtocol.h
>
21
#include <
vrvCore/DtBaseAccessory.h
>
22
#include <
vrvCore/DtEntityState.h
>
23
#include <
vrfVrlSharedSource/DtVrfDriver.h
>
24
25
namespace
makVrv
26
{
27
class
DtConnection;
28
}
29
30
namespace
makVrf
31
{
32
namespace
VRF_PROTOCOL_NAMESPACE
33
{
34
class
DtVrfDriver;
35
}
36
}
37
38
//\brief This class defines an accessory that will install itself
39
//into DtVrlinkDriver objects and print out the esr of entities
40
//as they are discovered.
41
class
DtAddAttrGuiAccessory
:
public
makVrv::DtBaseAccessory
42
{
43
public
:
44
//\Default constructor
45
DtAddAttrGuiAccessory
();
46
47
//\Default destructor
48
virtual
~DtAddAttrGuiAccessory
();
49
50
//\brief Called when this accessory is installed into a connector.
51
virtual
void
install
(
makVrv::DtDriver
* driver);
52
53
//\brief Called when this accessory is uninstalled
54
virtual
void
uninstall
(
makVrv::DtDriver
* baseConn);
55
56
//\brief Called to find out if this accessory is compatible with a
57
//particular connector. In this case, it is compatible with any
58
//DtVrlinkDriver of the correct protocol
59
virtual
bool
isCompatible
(
makVrv::DtDriver
* driver);
60
61
protected
:
62
63
//\brief Called when the driver creates a new connection
64
virtual
void
slot_onSimCreated
(
makVrv::DtConnection
* connection);
65
66
//\brief Called when a sim connection is connected
67
virtual
void
slot_onSimConnected
(
makVrv::DtConnection
* connection);
68
69
//\brief Called when a sim connection is disconnected
70
virtual
void
slot_onSimAboutToBeDisconnected
(
makVrv::DtConnection
* connection);
71
72
//\brief Called when state view is updated for entity state
73
virtual
void
slot_stateUpdated
(
makVrv::DtUniqueID
listenerId,
const
makVrv::DtVrlinkSimulatedBaseState
& s);
74
75
//\brief Called when the Vrf Driver has complete its setup. Safe to connect to data processor signals
76
virtual
void
slot_onConnectionSetupComplete
();
77
78
protected
:
79
makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfDriver
*
myDriver
;
80
};
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)