VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
searchLightPublisherHLA.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 DtHLA
13 
15 #include <vl/objectPublisherHLA.h>
16 
20 
26 {
27 public:
28 
30  typedef DtSearchLightStateRepository* (*DtStateRepCreator)();
31 
33  typedef DtSearchLightEncoder* (*DtEncoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
34 
36  typedef DtSearchLightDecoder* (*DtDecoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
37 
38 public:
39 
42  DtSearchLightStateRepository* stateRepToUse,
43  DtExerciseConn* conn,
44  const char* name = 0,
45  const DtDDMRegionSet* regionSetToUse = 0);
46 
49  RTI::ObjectClassHandle h,
50  DtExerciseConn* conn,
51  const char* name = 0,
52  const DtDDMRegionSet* regionSetToUse = 0);
53 
56  DtExerciseConn* conn,
57  const char* name = 0,
58  const DtDDMRegionSet* regionSetToUse = 0);
59 
65  DtSearchLightPublisher( DtHlaObjectWithStateRep* obj, DtExerciseConn* conn);
66 
68  virtual ~DtSearchLightPublisher() override;
69 
72  virtual DtSearchLightStateRepository* searchLightStateRep();
73 
75  virtual DtSearchLightStateRepository* slsr();
76 
79  virtual const char* classToUse() const;
80 
81 private:
84 
86  DtSearchLightPublisher& operator=(
87  const DtSearchLightPublisher& orig);
88 
89 public:
91  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
92 
94  static DtEncoderCreator setEncoderCreator(DtEncoderCreator creator);
95 
97  static DtDecoderCreator setDecoderCreator(DtDecoderCreator creator);
98 
99 protected:
100  static DtStateRepCreator theStateRepCreator;
101  static DtEncoderCreator theEncoderCreator;
102  static DtDecoderCreator theDecoderCreator;
103 };
104 
106 {
107  return (DtSearchLightStateRepository*) myStateRep;
108 }
109 
111 {
112  return searchLightStateRep();
113 }
114 
115 #endif // DtHLA
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
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
static DtDecoderCreator theDecoderCreator
Definition: searchLightPublisherHLA.h:102
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
static DtEncoderCreator theEncoderCreator
Definition: searchLightPublisherHLA.h:101

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)