VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedSearchLightDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
15 #include <vl/globalObjectDesignator.h>
16 #include <vl/reflectedObjectDIS.h>
17 #include <vl/objectIdHashKey.h>
18 #include <vlutil/vlMachineTypes.h>
19 
20 class DtExerciseConn;
21 
25 class DtAimableSystemPdu;
26 
29  DtReflectedSearchLight* obj, void* userData);
30 
33 {
34 public:
35 
37  typedef DtSearchLightStateRepository* (*DtStateRepCreator)();
38 
39 public:
40 
42  DtReflectedSearchLight(DtExerciseConn* conn,
43  const DtEntityIdentifier& id);
44 
46  virtual ~DtReflectedSearchLight() override;
47 
48 private:
51 
53  DtReflectedSearchLight& operator=(const DtReflectedSearchLight& orig);
54 public:
55 
58  virtual DtSearchLightStateRepository* searchLightStateRep() const;
59 
61  virtual DtSearchLightStateRepository* slsr() const;
62 
66  virtual DtStateRepository *stateRep() const override;
67 
70  virtual DtSearchLightDecoder* decoder();
71 
73  virtual const DtObjectId& id() const;
74 
77  virtual const DtGlobalObjectDesignator &globalId() const override;
78 
80  virtual DtReflectedSearchLight* next() const;
81  virtual DtReflectedSearchLight* prev() const;
82 
84  virtual DtReflectedSearchLight* wrapNext() const;
85  virtual DtReflectedSearchLight* wrapPrev() const;
86 
88  virtual void addPostUpdateCallback(
89  DtSearchLightCallbackFunction cb, void* userData);
90  virtual void removePostUpdateCallback(
91  DtSearchLightCallbackFunction cb, void* userData);
92 
94  virtual void setHashKey(const DtString& uniqueVal);
95 
98  virtual const DtBaseHashKey &hashKey() const override;
99 
101  virtual DtString idString() const override;
102 
103 
105  virtual void processStateMessage(const DtStateMsg &msg) override;
106 
109  virtual void processSearchLightState(const DtAimableSystemPdu& pdu);
110 
111 public:
112 
114  static void setStateRepCreator(DtStateRepCreator creator);
115  static DtStateRepCreator stateRepCreator(void);
116 
117 protected:
118 
119  static DtStateRepCreator theStateRepCreator;
120  DtStringHashKey myHashKey;
121  DtEntityIdentifier myId;
124 };
125 
126 #endif // DtDIS
Instances of DtAimableSystemPdu are used for DIS network packets which encode the DtAimableSystemStat...
Definition: aimableSystemPduDIS.h:31
static DtStateRepCreator theStateRepCreator
The function called to create state repositories.
Definition: reflectedSearchLightDIS.h:119
void(* DtSearchLightCallbackFunction)(DtReflectedSearchLight *obj, void *userData)
Definition: reflectedSearchLightDIS.h:28
Instances of DtReflectedSearchLight are used to represent a simulated HLAobjectRoot.EmbeddedSystem.AimableSystem.SearchLight object reflected across a network.
Definition: reflectedSearchLightDIS.h:32
DtSearchLightDecoder * myDecoder
Definition: reflectedSearchLightDIS.h:123
DtStringHashKey myHashKey
Definition: reflectedSearchLightDIS.h:120
DtEntityIdentifier myId
Definition: reflectedSearchLightDIS.h:121
Instances of DtSearchLightDecoder encode data from DtSearchLightStateRepository objects to the net st...
Definition: searchLightDecoderDIS.h:24
DtSearchLightStateRepository * myStateRep
Definition: reflectedSearchLightDIS.h:122
Instances of DtSearchLightStateRepository are used to store state data for HLAobjectRoot.EmbeddedSystem.AimableSystem.SearchLight objects.
Definition: searchLightStateRepository.h:18
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

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)