VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedEntityHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef reflectedEntityHLA_H_
8 #define reflectedEntityHLA_H_
9 
10 #if DtHLA
11 
12 #include "entityStateRepository.h"
13 #include "reflectedObjectHLA.h"
14 
19 
21 
23 typedef void (*DtEntityCallbackFunction)(
24  DtReflectedEntity* obj, void* userData);
25 
30 {
31 public:
32 
34  typedef DtEntityStateRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40 
45 
48  DtBaseStateRepCreator esrToUse);
49 
51  virtual ~DtReflectedEntity();
52 
55  virtual DtEntityStateRepository* entityStateRep() const;
56 
58  virtual DtEntityStateRepository* esr() const;
59 
61  virtual DtReflectedEntity* next() const;
62 
64  virtual DtReflectedEntity* prev() const;
65 
68  virtual DtReflectedEntity* wrapNext() const;
69 
72  virtual DtReflectedEntity* wrapPrev() const;
73 
75  virtual void addPostUpdateCallback(
76  DtEntityCallbackFunction cb, void* userData);
77  virtual void removePostUpdateCallback(
78  DtEntityCallbackFunction cb, void* userData);
79 
80  virtual void diGuyObjectUpdated();
81 
83  virtual void acquireObject();
84 
85 public:
86 
88  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
89 
90 public:
91 
93  typedef DtStateRepCreator DtEsrCreator;
94 
96 #if DtHLA_1516
97  virtual RTI::ObjectInstanceHandle entityObjectId() const;
98 #else
99  virtual RTI::ObjectHandle entityObjectId() const;
100 #endif
101 
104  static DtEsrCreator setEsrCreator(DtEsrCreator creator);
105 
106 protected:
107 
110 
113 
114 protected:
115 
116  static DtStateRepCreator theStateRepCreator;
117 };
118 
120 {
122 }
123 
125 {
127 }
128 
129 #endif
130 #endif
131 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)