VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
searchLightPublisherDIS.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
12 
13 #if DtDIS
14 
15 #include <vl/objectPublisherDIS.h>
18 
19 
21 
27 {
28 public:
30  typedef DtSearchLightStateRepository* (*DtStateRepCreator)();
31 
32 public:
35  DtSearchLightStateRepository* stateRepToUse,
36  DtExerciseConn* conn,
37  const DtObjectId& id = DtObjectId::nullId());
38 
41  DtExerciseConn* conn,
42  const DtObjectId& id = DtObjectId::nullId());
43 
45  virtual ~DtSearchLightPublisher() override;
46 
47 private:
50 
52  DtSearchLightPublisher& operator=(
53  const DtSearchLightPublisher& orig);
54 
55 public:
56 
59  virtual DtSearchLightStateRepository* searchLightStateRep();
60 
62  virtual DtSearchLightStateRepository* slsr();
63 
65  virtual bool tick() override;
66 
68  virtual void forceUpdate() override;
69 
71  virtual const DtObjectId &id() const override;
72 
74  virtual const DtObjectId &localId() const override;
75 
77  virtual const DtGlobalObjectDesignator &globalId() const override;
78 
80  virtual void sendFinalPdu();
81 
82 public:
84  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
85 
86 protected:
87  static DtStateRepCreator theStateRepCreator;
88  DtObjectId myId;
91 
92 };
93 
95 {
96  return (DtSearchLightStateRepository*) myStateRep;
97 }
98 
100 {
101  return searchLightStateRep();
102 }
103 
104 #endif // DtDIS
This file provides a declaration of the class DtSearchLightEncoder.
Contains the DtSearchLightDecoder class declaration.
static DtStateRepCreator theStateRepCreator
Definition: searchLightPublisherDIS.h:87
Instances of DtSearchLightPublisher publish SearchLight objects to the network.
Definition: searchLightPublisherDIS.h:26
Instances of DtSearchLightEncoder encode data from DtSearchLightStateRepository objects to the net st...
Definition: searchLightEncoderDIS.h:26
DtObjectId myId
Definition: searchLightPublisherDIS.h:88
DtSearchLightEncoder * myEncoder
Definition: searchLightPublisherDIS.h:90
virtual DtSearchLightStateRepository * searchLightStateRep()
Returns a pointer to the DtSearchLightStateRepository - through which you can set or inspect current ...
Definition: searchLightPublisherDIS.h:94
Instances of DtSearchLightDecoder encode data from DtSearchLightStateRepository objects to the net st...
Definition: searchLightDecoderDIS.h:24
DtSearchLightDecoder * myDecoder
Definition: searchLightPublisherDIS.h:89
virtual DtSearchLightStateRepository * slsr()
Synonym for searchLightStateRep().
Definition: searchLightPublisherDIS.h:99
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)