VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
addSet
addSetSim
myLclEntSetCtlr.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: myLclEntSetCtlr.h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
9
//\file myLclEntSetCtlr.h
10
//\brief MyLocalEntitySetController; handles new DtSetSpeedAndHeadingRequest
11
12
13
#ifndef MyLocalEntitySetController_H_
14
#define MyLocalEntitySetController_H_
15
16
17
#include "
vrfmodel/localEntitySetController.h
"
18
#include "
vrfobjcore/simRadio.h
"
19
20
namespace
vrfAddSetExample
21
{
22
//\brief MyLocalEntitySetController is a controller that handles new
23
//DtSetSpeedAndHeadingRequest. It replaces the existing DtLocalEntitySetController
24
//
25
//Uses Descriptor Type: DtComponentDescriptor
26
27
class
MyLocalEntitySetController
:
public
DtLocalEntitySetController
28
{
29
30
public
:
31
32
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
33
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
34
MyLocalEntitySetController
(
const
DtString
&
name
,
35
DtVrfObject
* owner,
36
DtSimManager
*
simManager
,
37
DtComponentDescriptor
* desc = 0,
38
DtReaderWriterRegistry
* parentRegistry = 0);
39
40
//destructor
41
virtual
~MyLocalEntitySetController
();
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
MyLocalEntitySetController
();
60
61
//copy constructor
62
MyLocalEntitySetController
(
const
MyLocalEntitySetController
& orig);
63
64
//assignment operator
65
const
MyLocalEntitySetController
&
operator=
(
const
66
MyLocalEntitySetController
& 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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)