VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
iffInterrogatorControllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 
10 
11 #pragma once
12 
15 
16 class DtString;
18 class DtSimMessage;
22 
23 namespace makVrf
24 {
25  class DtIffStateComponent;
26 }
27 
28 namespace makVrfEvents
29 {
30  class DtEvent;
31  class DtIffInterrogatorResponseEvent;
32 }
33 
39 {
40 public:
41 
45  DtLocalObject* owner,
46  DtSimulationServices* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
51  virtual ~DtIffInterrogatorControllerComponent() override;
52 
55  virtual void tick() override;
56 
59  virtual const char* type() const override;
60 
64  static DtSimComponent * creator(const DtString& name,
65  DtLocalObject* owner,
66  DtSimulationServices* simManager,
67  DtComponentDescriptor* desc = 0,
68  DtReaderWriterRegistry* parentRegistry = 0);
69 
70  static void iffInterrogatorCallback(DtSimMessage *msg, void * usrData);
71  virtual void processIffInterrogatorRequest(DtSimMessage *msg);
72 
73  static void iffInterrogatorSweepCallback(DtSimMessage *msg, void * usrData);
74  virtual void processIffInterrogatorSweepRequest(DtSimMessage *msg);
75 
76 protected:
77  virtual void processInterrogatorTask(const DtIffInterrogatorTask&);
78  virtual void processInterrogatorSweepTask(const DtIffInterrogatorSweepTask&);
79 
80  virtual void registerTaskMsgCallbacks() override;
81  virtual void processResponse(const makVrfEvents::DtIffInterrogatorResponseEvent* iff);
82  virtual void processInterrogationResponse(const makVrfEvents::DtEvent&);
83 
84 protected:
85  boost::signals2::connection myInterrogatorResponseConnection;
88 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
VR-Link includes.
Definition: iffInterrogatorSweepTask.h:17
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtIffInterrogatorControllerComponent is a controller that manages a IFF publisher for an entity...
Definition: iffInterrogatorControllerComponent.h:38
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
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
A task to interrogate an iff from a particular entity to a particular entity. This task will generate...
Definition: iffInterrogatorTask.h:15
const DtIffInterrogatorControllerDescriptor * myInterrogatorDescriptor
Descriptor for this controller; nullptr if the descriptor type is wrong.
Definition: iffInterrogatorControllerComponent.h:87
Definition: event.h:13
boost::signals2::connection myInterrogatorResponseConnection
Definition: iffInterrogatorControllerComponent.h:85
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
Definition: iffInterrogatorResponseEvent.h:14
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtIffInterrogatorControllerDescriptor; descriptor for the DtIffInterrogatorControllerComponent compon...
Definition: iffInterrogatorControllerDescriptor.h:23
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)