VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
signalFlagsSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include "vrfmodel/setController.h"
17 #include <vector>
18 
20 class DtSimMessage;
21 
30 {
31 
32 public:
33 
37  DtLocalObject* owner,
38  DtSimulationServices* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtSignalFlagsSetController() override;
44 
47  virtual const char* type() const override;
48 
50  virtual DtSignalFlagControllerPSR* createPSR();
51 
53  static void setSignalFlagsCallback(DtSimMessage* msg, void* usrData);
54 
56  virtual void processSetSignalFlags(DtSimMessage* msg);
57 
59  virtual void publishSignalFlagsStateProperty();
60 
64  static DtSimComponent* creator(const DtString& name,
65  DtLocalObject* owner,
66  DtSimulationServices* simManager,
67  DtComponentDescriptor* desc = 0,
68  DtReaderWriterRegistry* parentRegistry = 0);
69 
70  virtual bool init() override;
71 
72 protected:
75 
78 
81 
85 
88 
91  std::vector<std::vector<int>> myLastPrintedSignalFlags;
92 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtSetController & operator=(const DtSetController &orig)
assignment operator; not implemented
DtSignalFlagsSetControllerDescriptor * mySignalFlagSetDescriptor
The descriptor.
Definition: signalFlagsSetController.h:87
DtSignalFlagControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: signalFlagsSetController.h:84
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 const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
DtSignalFlagControllerPSR stores state for signal flag controller tasks. It tracks flags for up to Dt...
Definition: signalFlagControllerPSR.h:24
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
std::vector< std::vector< int > > myLastPrintedSignalFlags
Last-printed SignalFlags values; used to gate tick() output to changed frames only. Outer index = DtHalyardPosition (0..DtHalyardPositionCount-1), inner = flag values.
Definition: signalFlagsSetController.h:91
This class will define a basic set controller that will allow for adding sets of that can be register...
Definition: setController.h:21
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
Descriptor for the DtSignalFlagsSetController class.
Definition: signalFlagsSetControllerDescriptor.h:19
DtSignalFlagsSetController handles DtSetSignalFlagsRequest messages for surface entities (ships)...
Definition: signalFlagsSetController.h:29
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)