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