VR-Forces Developer's Guide
 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "vrfobjcore/simRadio.h"
10 
11 namespace vrfAddSetExample
12 {
13 
14  //\brief MyAirVehicleSetController is a controller that handles new
15  //DtSetSpeedAndHeadingRequest. It replaces the existing DtAirVehicleSetController
16  //
17  //Uses Descriptor Type: DtComponentDescriptor
18 
20  {
21 
22  public:
23 
24  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
25  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
27  DtLocalObject* owner,
29  DtComponentDescriptor* desc = 0,
30  DtReaderWriterRegistry* parentRegistry = 0);
31 
32  //destructor
33  virtual ~MyAirVehicleSetController() override;
34 
35  virtual void processSetSpeedAndHeading(DtSimMessage * msg);
36 
37  static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
38 
39  //\copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
40  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
41  //\return New instance of this class.
42  static DtSimComponent * creator(const DtString& name,
43  DtLocalObject* owner,
44  DtSimulationServices* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
48  private:
49  //Default constructor; should not be called. Here because the compiler
50  //will generate an unprotected one otherwise.
52 
53  //copy constructor
55 
56  //assignment operator
59 
60 
61  protected:
62  //Overrides this so it can register its interest in the set commands.
63  virtual void setRadio(DtSimRadio* radio) override;
64  };
65 }
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
virtual void setRadio(DtSimRadio *radio) override
Override to add set data callbacks.
DtAirVehicleSetController is a controller component responsible for handling DtSetDataRequests for ai...
Definition: airVehicleSetController.h:45
const MyAirVehicleSetController & operator=(const MyAirVehicleSetController &orig)
File: simMsg.h.
Definition: simMessage.h:35
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
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:583
Definition: myAirVehSetCtlr.h:19
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.
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)