VR-Link API Documentation for HLA 1.3
dReflIff.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtReflectedIff_H_
11 #define DtReflectedIff_H_
12 
13 #if DtDIS
14 
15 #include "hostStructs.h"
16 #include "iffSR.h"
17 #include "dReflectedObj.h"
18 #include "objIdHashKey.h"
19 
20 
22 
25 typedef void (*DtIffCallbackFunction)(
26  DtReflectedIff* obj, void* userData);
27 
28 
34 {
35 public:
36 
38  typedef DtIffStateRepository* (*DtStateRepCreator)();
39 
40 public:
41 
44  const DtGlobalObjectDesignator& emittingEntity);
45 
47  virtual ~DtReflectedIff();
48 
50  virtual DtIffStateRepository* iffRep() const;
51 
53  virtual DtIffStateRepository* isr() const;
54 
58  virtual DtStateRepository* stateRep() const;
59 
62  virtual void processStateMessage(const DtStateMsg& msg);
63 
65  virtual DtReflectedIff* next() const;
66 
68  virtual DtReflectedIff* prev() const;
69 
72  virtual DtReflectedIff* wrapNext() const;
73 
76  virtual DtReflectedIff* wrapPrev() const;
77 
79  virtual void addPostUpdateCallback(
80  DtIffCallbackFunction cb, void* userData);
81 
82  virtual void removePostUpdateCallback(
83  DtIffCallbackFunction cb, void* userData);
84 
86  virtual const DtBaseHashKey& hashKey() const;
87 
90  virtual const DtGlobalObjectDesignator& globalId() const;
91 
93  virtual DtString idString() const;
94 
95 public:
96 
98  static void setStateRepCreator(DtStateRepCreator creator);
99  static DtStateRepCreator stateRepCreator(void);
100 
101 protected:
102 
104  DtReflectedIff(const DtReflectedIff& orig);
105 
108  const DtReflectedIff& orig);
109 
110 protected:
111 
112  DtIffStateRepository *myStateRepository;
113  DtObjectIdHashKey myHashKey;
114  DtString myIdString;
115 
116 protected:
117 
118  static DtStateRepCreator theStateRepCreator;
119 
120 };
121 
122 
123 #endif
124 #endif
125 

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)