VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
29  {
30 
31  public:
32 
33  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
34  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
36  DtVrfObject* owner,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
41  //destructor
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.
61 
62  //copy constructor
64 
65  //assignment operator
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 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
class DtSimRadio:
Definition: simRadio.h:25
DtSimManager * simManager()
Gets the sim manager.
Definition: simComponent.h:410
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtAirVehicleSetController is a controller component responsible for handling DtSetDataRequests for ai...
Definition: airVehicleSetController.h:44
const MyAirVehicleSetController & operator=(const MyAirVehicleSetController &orig)
File: simMsg.h.
Definition: simMessage.h:35
virtual void setRadio(DtSimRadio *radio)
Override to add set data callbacks.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition: myAirVehSetCtlr.h:28
static void setSpeedAndHeadingCallback(DtSimMessage *msg, void *usrData)
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual void processSetSpeedAndHeading(DtSimMessage *msg)
virtual DtSimRadio * radio()
The radio this component is listening to.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)