VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
signalFlagControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "vrfutil/rwIntegerList.h"
15 
16 #include <array>
17 #include <vector>
18 
25 {
26 public:
28  const DtString& rwName = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
32  const DtString& rwName = DtString::nullString(),
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
35  virtual ~DtSignalFlagControllerPSR() override;
36 
38 
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0) const override;
42 
43  virtual DtString type() const override;
44 
45  static DtVrfProcessStateRepository* creator(const DtString& rwName,
46  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
47 
49  virtual DtRwIntegerList* halyard(DtHalyardPosition pos);
50  virtual const DtRwIntegerList* halyard(DtHalyardPosition pos) const;
51 
54  virtual void setHalyard(DtHalyardPosition pos, const std::vector<int>& flags);
55 
56 protected:
59  std::array<DtRwIntegerList*, DtHalyardPositionCount> myHalyards;
60 };
DtSignalFlagControllerPSR stores state for signal flag controller tasks. It tracks flags for up to Dt...
Definition: signalFlagControllerPSR.h:24
std::array< DtRwIntegerList *, DtHalyardPositionCount > myHalyards
One integer list per halyard position, indexed by DtHalyardPosition (0-8). Each list starts empty and...
Definition: signalFlagControllerPSR.h:59
Definition: readerWriterRegistry.h:39
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts). The list contains pointers to DtRwInt instances.
Definition: rwIntegerList.h:19
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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)