VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
laserLightPublisherDIS.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/globalObjectDesignator.h>
16 #include <vl/objectPublisherDIS.h>
19 
20 
22 
28 {
29 public:
31  typedef DtLaserLightStateRepository* (*DtStateRepCreator)();
32 
33 public:
36  DtLaserLightStateRepository* stateRepToUse,
37  DtExerciseConn* conn,
38  const DtObjectId& id = DtObjectId::nullId());
39 
42  DtExerciseConn* conn,
43  const DtObjectId& id = DtObjectId::nullId());
44 
46  virtual ~DtLaserLightPublisher() override;
47 
48 private:
51 
53  DtLaserLightPublisher& operator=(
54  const DtLaserLightPublisher& orig);
55 
56 public:
57 
60  virtual DtLaserLightStateRepository* laserLightStateRep();
61 
63  virtual DtLaserLightStateRepository* llsr();
64 
66  virtual bool tick() override;
67 
69  virtual void forceUpdate() override;
70 
72  virtual const DtObjectId &id() const override;
73 
75  virtual const DtObjectId &localId() const override;
76 
78  virtual const DtGlobalObjectDesignator &globalId() const override;
79 
81  virtual void sendFinalPdu();
82 
83 public:
85  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
86 
87 protected:
88  static DtStateRepCreator theStateRepCreator;
89  DtObjectId myId;
92 
93 };
94 
96 {
97  return (DtLaserLightStateRepository*) myStateRep;
98 }
99 
101 {
102  return laserLightStateRep();
103 }
104 
105 #endif // DtDIS
Instances of DtLaserLightEncoder encode data from DtLaserLightStateRepository objects to the net stru...
Definition: laserLightEncoderDIS.h:26
virtual DtLaserLightStateRepository * llsr()
Synonym for LaserLightStateRep().
Definition: laserLightPublisherDIS.h:100
DtLaserLightDecoder * myDecoder
Definition: laserLightPublisherDIS.h:90
Instances of DtLaserLightDecoder encode data from DtLaserLightStateRepository objects to the net stru...
Definition: laserLightDecoderDIS.h:25
static DtStateRepCreator theStateRepCreator
Definition: laserLightPublisherDIS.h:88
DtObjectId myId
Definition: laserLightPublisherDIS.h:89
Contains the DtLaserLightDecoder class declaration.
This file provides a declaration of the class DtLaserLightEncoder.
Instances of DtLaserLightPublisher publish LaserLight objects to the network.
Definition: laserLightPublisherDIS.h:27
virtual DtLaserLightStateRepository * laserLightStateRep()
Returns a pointer to the DtLaserLightStateRepository - through which you can set or inspect current s...
Definition: laserLightPublisherDIS.h:95
DtLaserLightEncoder * myEncoder
Definition: laserLightPublisherDIS.h:91
Instances of DtLaserLightStateRepository are used to store state data for HLAobjectRoot.EmbeddedSystem.AimableSystem.LaserLight objects.
Definition: laserLightStateRepository.h:19
#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)