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 
31 
33 {
34 public:
35 
37  typedef DtIffStateRepository* (*DtStateRepCreator)();
38 
39 public:
40 
42  DtReflectedIff(DtHlaObject* obj, DtExerciseConn* conn);
43 
45  virtual ~DtReflectedIff();
46 
49  virtual DtIffStateRepository* iffStateRep() const;
50 
52  virtual DtIffStateRepository* isr() const;
53 
55  virtual DtIffStateRepository* iffRep() const;
56 
57 #if DtHLA
58  virtual void syncMode5Transponder();
59  virtual void syncMode5Interrogator();
60  virtual void syncModeSTransponder();
61  virtual void syncModeSInterrogator();
62 #endif
63 
66  virtual DtReflectedIff* next() const;
67  virtual DtReflectedIff* prev() const;
68  virtual DtReflectedIff* wrapNext() const;
69  virtual DtReflectedIff* wrapPrev() const;
70 
72  virtual void addPostUpdateCallback(
73  DtIffCallbackFunction cb, void* userData);
74  virtual void removePostUpdateCallback(
75  DtIffCallbackFunction cb, void* userData);
76 
77 public:
78 
80  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
81 
82 protected:
83 
85  DtReflectedIff(const DtReflectedIff& orig);
86 
89 
90 protected:
91 
92  static DtStateRepCreator theStateRepCreator;
93 };
94 
96 {
97  return (DtIffStateRepository*) myStateRep;
98 }
99 
101 {
102  return (DtIffStateRepository*) myStateRep;
103 }
104 
106 {
107  return (DtIffStateRepository*) myStateRep;
108 }
109 
110 #endif
111 #endif
112 
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:61
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:57
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 Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)