VR-Link API Documentation for HLA 1.3
tReflectedEnt.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #if DtTENA
8 
9 #ifndef DtTENAReflectedEntity_H_
10 #define DtTENAReflectedEntity_H_
11 
12 #include "tReflectedObj.h"
13 #include "globalObjDes.h"
14 #include "entitySR.h"
15 
19 
22 class DT_DLL_VL DtEntityStateDecoder;
23 
25 typedef void (*DtEntityCallbackFunction)(
26  DtReflectedEntity* obj, void* userData);
27 
28 
33 {
34 public:
35 
38  typedef DtEntityStateRepository* (*DtStateRepCreator)();
39 
40 public:
41 
44 
46  DtReflectedEntity(DtExerciseConn* conn, DtBaseStateRepCreator esrToUse);
47 
49  virtual ~DtReflectedEntity();
50 
51 private:
52 
55 
58 
59 public:
60 
62  virtual DtReflectedEntity* next() const;
63 
66  virtual DtEntityStateRepository* entityStateRep() const;
67 
69  virtual DtEntityStateRepository* esr() const;
70 
72  virtual DtReflectedEntity* prev() const;
73 
76  virtual DtReflectedEntity* wrapNext() const;
77 
80  virtual DtReflectedEntity* wrapPrev() const;
81 
83  void removePostUpdateCallback( DtEntityCallbackFunction , void* );
84 
86  void addPostUpdateCallback( DtEntityCallbackFunction , void* );
87 
89  virtual const DtObjectId& id() const;
90 
92  virtual const DtGlobalObjectDesignator& globalId() const;
93 
95  virtual void printDataToStream(std::ostream& str) const;
96 
97 public:
99  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
100 
101  static void setUseDeadReckoning(bool yesNo);
102  static bool useDeadReckoning();
103 protected:
104 
105  static DtStateRepCreator theStateRepCreator;
106  static bool theUseDeadReckoning;
107 
108 
109 };
110 
112 {
114 }
115 
117 {
119 }
120 
121 
122 #endif
123 #endif
124 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)