VR-Link API Documentation for HLA 1.3
reflectedIffDIS.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 "iffStateRepository.h"
17 #include "reflectedObjectDIS.h"
18 #include "iffSystemHashKey.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  DtU16 systemType, DtU16 systemName, DtU8 systemDesignator);
46 
48  virtual ~DtReflectedIff();
49 
51  virtual DtIffStateRepository* iffRep() const;
52 
54  virtual DtIffStateRepository* isr() const;
55 
57  virtual DtIffStateRepository* iffStateRep() const;
58 
62  virtual DtStateRepository* stateRep() const;
63 
66  virtual void processStateMessage(const DtStateMsg& msg);
67 
69  virtual DtReflectedIff* next() const;
70 
72  virtual DtReflectedIff* prev() const;
73 
76  virtual DtReflectedIff* wrapNext() const;
77 
80  virtual DtReflectedIff* wrapPrev() const;
81 
83  virtual void addPostUpdateCallback(
84  DtIffCallbackFunction cb, void* userData);
85 
86  virtual void removePostUpdateCallback(
87  DtIffCallbackFunction cb, void* userData);
88 
90  virtual const DtBaseHashKey& hashKey() const;
91 
94  virtual const DtGlobalObjectDesignator& globalId() const;
95 
97  virtual DtString idString() const;
98 
99 public:
100 
102  static void setStateRepCreator(DtStateRepCreator creator);
103  static DtStateRepCreator stateRepCreator(void);
104 
105 protected:
106 
108  DtReflectedIff(const DtReflectedIff& orig);
109 
112  const DtReflectedIff& orig);
113 
114 protected:
115 
116  DtIffStateRepository *myStateRepository;
117  DtIFFSystemHashKey myHashKey;
118  DtString myIdString;
119 
120 protected:
121 
122  static DtStateRepCreator theStateRepCreator;
123 
124 };
125 
126 
127 #endif
128 #endif
129 

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)