VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myGndVehSetCtlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "vrfobjcore/simRadio.h"
10 
11 namespace vrfAddSetExample
12 {
13  //\brief MyLocalEntitySetController is a controller that handles new
14  //DtSetSpeedAndHeadingRequest. It replaces the existing DtLocalEntitySetController
15  //
16  //Uses Descriptor Type: DtComponentDescriptor
17 
19  {
20 
21  public:
22 
23  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
24  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
26  DtLocalObject* owner,
28  DtComponentDescriptor* desc = 0,
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
31  //destructor
33 
34  virtual void processSetSpeedAndHeading(DtSimMessage * msg);
35 
36  static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
37 
38  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
39  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
40  //\return New instance of this class.
41  static DtSimComponent * creator(const DtString& name,
42  DtLocalObject* owner,
43  DtSimulationServices* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
47  private:
48  //Default constructor; should not be called. Here because the compiler
49  //will generate an unprotected one otherwise.
51 
52  //copy constructor
54 
55  //assignment operator
58 
59 
60  protected:
61  //Overrides this so it can register its interest in the set commands.
62  virtual void setRadio(DtSimRadio * radio) override;
63  };
64 }
Definition: simRadio.h:30
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void setRadio(DtSimRadio *radio) override
Override to add set data callbacks.
File: simMsg.h.
Definition: simMessage.h:35
virtual void processSetSpeedAndHeading(DtSimMessage *msg)
const MyGroundVehicleSetController & operator=(const MyGroundVehicleSetController &orig)
DtGroundVehicleSetController is a controller component responsible for handling DtSetDataRequests for...
Definition: groundVehicleSetController.h:36
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:574
static void setSpeedAndHeadingCallback(DtSimMessage *msg, void *usrData)
Definition: myGndVehSetCtlr.h:18
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual DtSimRadio * radio()
The radio this component is listening to.
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)