VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
emitterSystemPublisherHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
8 #pragma once
9 #if DtHLA
10 
11 #include "objectPublisherHLA.h"
12 #include "eventId.h"
13 
14 
16 class DtEmitterBeamPublisher;
18 
24 {
25 public:
26 
28  typedef DtEmitterSystemRepository* (*DtStateRepCreator)();
29 
30 public:
31 
34  DtEmitterSystemRepository *stateRepToUse,
35  DtExerciseConn* conn,
36  const char* name = 0,
37  const DtDDMRegionSet* regionSetToUse = 0);
38 
41  RTI::ObjectClassHandle h,
42  DtExerciseConn* conn,
43  const char* name = 0,
44  const DtDDMRegionSet* regionSetToUse = 0);
45 
48  DtExerciseConn* conn,
49  const char* name = 0,
50  const DtDDMRegionSet* regionSetToUse = 0);
51 
57  DtEmitterSystemPublisher(DtHlaObjectWithStateRep* obj, DtExerciseConn* conn);
58 
60  virtual ~DtEmitterSystemPublisher();
61 
62 protected:
63 
69  const char* name = 0,
70  const DtDDMRegionSet* regionSetToUse = 0);
71 
72 private:
75 
77  DtEmitterSystemPublisher& operator=
78  (const DtEmitterSystemPublisher& orig);
79 
80 public:
81 
84  virtual DtEmitterSystemRepository* emitterSystemRep();
85 
87  virtual DtEmitterSystemRepository* esr();
88 
91  virtual const char* classToUse() const;
92 
95  virtual bool tick();
96 
100  virtual void forceUpdate();
101 
105  virtual void forceUpdate(const RTI::AttributeHandleSet& set);
106 
107 public:
108 
110  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
111 
112 protected:
113 
114 
118  virtual void syncBeamList();
119 
122  virtual DtEmitterBeamPublisher* publisherForBsr(
124 
126  virtual int numBeams() const;
127 
128 protected:
129 
131  DtList myBeamPubs;
132  bool myTickedFirstTime;
133  DtEventId myLastSentEventId;
134 
135 protected:
136 
137  static DtStateRepCreator theStateRepCreator;
138 };
139 
140 inline DtEmitterSystemRepository* DtEmitterSystemPublisher::emitterSystemRep()
141 {
143 }
144 
146 {
148 }
149 
150 #endif
151 
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
class DtEmitterBeamRepository:
Definition: emitterBeamRepository.h:44
Represents Events in DIS.
Definition: eventId.h:154
Instances of DtEmitterSystemRepository are used to store state data for emitter systems in both HLA a...
Definition: emitterSystemRepository.h:29
Instances of DtEmitterSystemPublisher are used to take care of the details associated with publishing...
Definition: emitterSystemPublisherDIS.h:26
virtual bool tick()=0
Tick (update) this object.
Contains the DtEventId class declaration.
virtual DtEmitterSystemRepository * esr()
Definition: emitterSystemPublisherDIS.h:130

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)