VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedEmitterSystemHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
15 #include <vl/reflectedObjectHLA.h>
16 
18 
21 typedef void (*DtEmitterSystemCallbackFunction)(
22  DtReflectedEmitterSystem* obj, void* usr );
23 
27 
29 {
30 public:
31 
33  typedef DtEmitterSystemRepository* (*DtStateRepCreator)();
34 
35 public:
36 
40  DtReflectedEmitterSystem( DtHlaObject* obj,
41  DtExerciseConn* conn, bool beamsUpdateSystem );
42 
46  const DtGlobalObjectDesignator& des,
47  DtExerciseConn* conn, bool beamsUpdateSystem );
48 
50  virtual ~DtReflectedEmitterSystem();
51 
53  static DtStateRepCreator setStateRepCreator( DtStateRepCreator creator );
54 
56  virtual DtEmitterSystemRepository* emitterSysRep() const;
57 
59  virtual DtEmitterSystemRepository* esr() const;
60 
62  virtual DtReflectedEmitterSystem* next() const;
63 
65  virtual DtReflectedEmitterSystem* prev() const;
66 
69  virtual DtReflectedEmitterSystem* wrapNext() const;
70 
73  virtual DtReflectedEmitterSystem* wrapPrev() const;
74 
76  virtual void addPostUpdateCallback( DtEmitterSystemCallbackFunction cb,
77  void* usr );
78 
79  virtual void removePostUpdateCallback( DtEmitterSystemCallbackFunction cb,
80  void* usr );
81 
83  virtual void beamUpdated();
84 
85 protected:
86 
89 
92 
93 protected:
94 
95  static DtStateRepCreator theStateRepCreator;
96 
97  bool myBeamsUpdateSystem;
98 
99 };
100 
102 {
103  return (DtEmitterSystemRepository*) myStateRep;
104 }
105 
107 {
108  return (DtEmitterSystemRepository*) myStateRep;
109 }
110 
111 #endif
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
void(* DtEmitterSystemCallbackFunction)(DtReflectedEmitterSystem *obj, void *userData)
Callback function that takes a DtReflectedObject and user data.
Definition: reflectedEmitterSystemDIS.h:25
virtual DtEmitterSystemRepository * emitterSysRep() const
Get the emitter system&#39;s state repository.
Instances of DtEmitterSystemRepository are used to store state data for emitter systems in both HLA a...
Definition: emitterSystemRepository.h:29
virtual DtEmitterSystemRepository * esr() const
Synonym for emitterSysRep().
void * wrapPrev() const
Definition: vlList.h:288
Instances of DtReflectedEmitterSystem represent EmitterSystem object simulated by remote applications...
Definition: reflectedEmitterSystemDIS.h:33

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)