VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addSet
addSetSim
myAirVehSetCtlr.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: myAirVehSetCtlr.h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
9
//\file myAirVehSetCtlr.h
10
//\brief MyAirVehicleSetController; handles new DtSetSpeedAndHeadingRequest
11
12
13
#ifndef MyAirVehicleSetController_H_
14
#define MyAirVehicleSetController_H_
15
16
17
#include "
vrfmodel/airVehSetCtlr.h
"
18
#include "
vrfobjcore/simRadio.h
"
19
20
namespace
vrfAddSetExample
21
{
22
23
//\brief MyAirVehicleSetController is a controller that handles new
24
//DtSetSpeedAndHeadingRequest. It replaces the existing DtAirVehicleSetController
25
//
26
//Uses Descriptor Type: DtComponentDescriptor
27
28
class
MyAirVehicleSetController
:
public
DtAirVehicleSetController
29
{
30
31
public
:
32
33
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
34
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
35
MyAirVehicleSetController
(
const
DtString
&
name
,
36
DtVrfObject
* owner,
37
DtSimManager
*
simManager
,
38
DtComponentDescriptor
* desc = 0,
39
DtReaderWriterRegistry
* parentRegistry = 0);
40
41
//destructor
42
virtual
~MyAirVehicleSetController
();
43
44
virtual
void
processSetSpeedAndHeading
(
DtSimMessage
* msg);
45
46
static
void
setSpeedAndHeadingCallback
(
DtSimMessage
* msg,
void
* usrData);
47
48
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
49
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
50
//\return New instance of this class.
51
static
DtSimComponent
*
creator
(
const
DtString
& name,
52
DtVrfObject
* owner,
53
DtSimManager
* simManager,
54
DtComponentDescriptor
* desc = 0,
55
DtReaderWriterRegistry
* parentRegistry = 0);
56
57
private
:
58
//Default constructor; should not be called. Here because the compiler
59
//will generate an unprotected one otherwise.
60
MyAirVehicleSetController
();
61
62
//copy constructor
63
MyAirVehicleSetController
(
const
MyAirVehicleSetController
& orig);
64
65
//assignment operator
66
const
MyAirVehicleSetController
&
operator=
(
const
67
MyAirVehicleSetController
& orig);
68
69
70
protected
:
71
//Overrides this so it can register its interest in the set commands.
72
virtual
void
setRadio
(
DtSimRadio
*
radio
);
73
};
74
}
75
#endif
76
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
)