VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myFixWngSetCtlr.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  //\brief MyFixedWingEntitySetController is a controller that handles new
14  //DtSetSpeedAndHeadingRequest. It replaces the existing DtFixedWingEntitySetController
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
32  virtual ~MyFixedWingEntitySetController() override;
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 }
DtFixedWingEntitySetController is a controller that handles DtSetDataRequest messages for fixed-wing ...
Definition: fixedWingEntitySetController.h:35
Definition: simRadio.h:30
const MyFixedWingEntitySetController & operator=(const MyFixedWingEntitySetController &orig)
static void setSpeedAndHeadingCallback(DtSimMessage *msg, void *usrData)
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual void processSetSpeedAndHeading(DtSimMessage *msg)
Definition: readerWriterRegistry.h:39
File: simMsg.h.
Definition: simMessage.h:35
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.
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: myFixWngSetCtlr.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.
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)