VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedIffHLA.h
Go to the documentation of this file.
1 #ifndef DtReflectedIff_H_
2 #define DtReflectedIff_H_
3 
4 #if DtHLA
5 
6 #include "reflectedObjectHLA.h"
7 #include "iffStateRepository.h"
8 
13 
17 
19 
20 typedef void (*DtIffCallbackFunction)(DtReflectedIff* obj, void* userData);
21 
22 
32 {
33 public:
34 
36  typedef DtIffStateRepository* (*DtStateRepCreator)();
37 
38 public:
39 
41  DtReflectedIff(DtHlaObject* obj, DtExerciseConn* conn);
42 
44  virtual ~DtReflectedIff();
45 
48  virtual DtIffStateRepository* iffStateRep() const;
49 
51  virtual DtIffStateRepository* isr() const;
52 
54  virtual DtIffStateRepository* iffRep() const;
55 
56 #if DtHLA
57  virtual void syncMode1();
58  virtual void syncMode2();
59  virtual void syncMode3A();
60  virtual void syncMode3C();
61  virtual void syncMode4();
62  virtual void syncMode5();
63  virtual void syncModeS();
64  virtual void syncTCASData();
65  virtual void syncSoviet();
66  virtual void syncRRB();
67 #endif
68 
71  virtual DtReflectedIff* next() const;
72  virtual DtReflectedIff* prev() const;
73  virtual DtReflectedIff* wrapNext() const;
74  virtual DtReflectedIff* wrapPrev() const;
75 
77  virtual void addPostUpdateCallback(
78  DtIffCallbackFunction cb, void* userData);
79  virtual void removePostUpdateCallback(
80  DtIffCallbackFunction cb, void* userData);
81 
82 public:
83 
85  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
86 
87 protected:
88 
90  DtReflectedIff(const DtReflectedIff& orig);
91 
94 
95 protected:
96 
97  static DtStateRepCreator theStateRepCreator;
98 };
99 
101 {
102  return (DtIffStateRepository*) myStateRep;
103 }
104 
106 {
107  return (DtIffStateRepository*) myStateRep;
108 }
109 
111 {
112  return (DtIffStateRepository*) myStateRep;
113 }
114 
115 #endif
116 #endif
117 
Contains the DtIffStateRepository class declaration.
Instances of DtReflectedIff represent Iff object simulated by remote applications.
Definition: reflectedIffDIS.h:34
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's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual DtIffStateRepository * iffRep() const
Get the iff system's state repository.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Defines a protocol independent repository of attributes for IFF objects.
Definition: iffStateRepository.h:39
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
void(* DtIffCallbackFunction)(DtReflectedIff *obj, void *userData)
Callback function that takes a DtReflectedObject and user data.
Definition: reflectedIffDIS.h:26
void * wrapPrev() const
Definition: vlList.h:288
virtual DtIffStateRepository * isr() const
Synonym for iffRep().
virtual DtIffStateRepository * iffStateRep() const
Synonym for iffRep().

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)