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;
21 
22 namespace makVrf
23 {
24  class DtIffStateComponent;
25 }
26 
27 namespace makVrfEvents
28 {
29  class DtEvent;
30  class DtIffInterrogatorResponseEvent;
31 }
32 
38 {
39 public:
40 
44  DtLocalObject* owner,
45  DtSimulationServices* simManager,
46  DtComponentDescriptor* desc = 0,
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
51 
54  virtual void tick();
55 
58  virtual const char* type() const;
59 
63  static DtSimComponent * creator(const DtString& name,
64  DtLocalObject* owner,
65  DtSimulationServices* simManager,
66  DtComponentDescriptor* desc = 0,
67  DtReaderWriterRegistry* parentRegistry = 0);
68 
69  static void iffInterrogatorCallback(DtSimMessage *msg, void * usrData);
70  virtual void processIffInterrogatorRequest(DtSimMessage *msg);
71 
72  static void iffInterrogatorSweepCallback(DtSimMessage *msg, void * usrData);
73  virtual void processIffInterrogatorSweepRequest(DtSimMessage *msg);
74 
75 protected:
76  virtual void processInterrogatorTask(const DtIffInterrogatorTask&);
77  virtual void processInterrogatorSweepTask(const DtIffInterrogatorSweepTask&);
78 
79  virtual void registerTaskMsgCallbacks() override;
80  virtual void processResponse(const makVrfEvents::DtIffInterrogatorResponseEvent* iff);
81  virtual void processInterrogationResponse(const makVrfEvents::DtEvent&);
82 
83 protected:
84  boost::signals2::connection myInterrogatorResponseConnection;
85 };
#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:37
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
Definition: event.h:13
boost::signals2::connection myInterrogatorResponseConnection
Definition: iffInterrogatorControllerComponent.h:84
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 from ...
Definition: iffInterrogatorResponseEvent.h:14
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)