VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacanComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
17 
20 
21 #include "vlpi/disEnums.h"
22 
23 
24 class DtString;
25 class DtSimManager;
26 class DtSimMessage;
27 class DtSimRadio;
28 class DtNavAidPublisher;
30 
31 class DtVrfObjectMessage;
35 
37 
39 {
40 public:
41 
44  DtTacanComponent(const DtString& name, DtVrfObject* owner, DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtTacanComponent();
49 
51  virtual void tick();
52 
55  virtual bool tickWhileDestroyed() const;
56 
59  bool init();
60 
62  virtual void preFirstTickInit();
63 
66  virtual const char* type() const;
67 
71  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner, DtSimManager* simManager,
72  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
73 
75  virtual void registerSetRequestMsgCallbacks();
76 
77  static void setTacanComponentCallback(DtSimMessage* msg, void* usrData);
78  virtual void processSetTacanComponent(DtSimMessage* msg);
79 
80 protected:
81 
83  virtual bool createAndInitNavAidPublisher();
84 
86  virtual void updateNavAidPublisherFromPsr();
87 
93  virtual bool createPSR();
94 
95 private:
98 
100  DtTacanComponent(const DtTacanComponent& orig);
101 
103  const DtTacanComponent & operator=(const DtTacanComponent & orig);
104 
105 
106 protected:
108 
110 
114 
115 };
116 
Instances of DtNavAidStateRepository are used to store state data for NavAid radio transmitter object...
Definition: navAidStateRepository.h:19
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
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
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
class DtTacanComponentPSR:
Definition: tacanComponentPSR.h:26
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
DtTacanComponentPSR * myProcessState
Container for state data associated with this component.
Definition: tacanComponent.h:113
Instances of DtNavAidPublisher are used for publishing simulation data of NavAids such as TACAN...
Definition: navAidPublisherDIS.h:23
DtTacanComponentDescriptor; descriptor for the DtTacanComponent component.
Definition: tacanComponentDescriptor.h:31
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
File: simMsg.h.
Definition: simMessage.h:35
Definition: tacanComponent.h:38
virtual void tick()
This gives the thread of control to the component.
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtNavAidPublisher * myNavAidPublisher
Definition: tacanComponent.h:107
The central class of a DtVrfObject for all communications to and from the object. ...
Definition: vrfObjectCommunicationInterface.h:45
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
const DtTacanComponentDescriptor * myTacanDescriptor
Definition: tacanComponent.h:109
Arguments passed by the DtVrfObjectManager::addNameChangedCallback callbacks.
Definition: vrfObjectManager.h:152
virtual const char * type() const =0
Returns a string identifies the class type of component.

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)