VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedDiGuyObject.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2013 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #if DtHLA
15 
16 #include <vl/reflectedObjectHLA.h>
17 
18 
20 
25  DtReflectedDIGuyObject* obj, void* userData);
26 
32 {
33 public:
36  typedef DtDIGuyObjectStateRepository* (*DtStateRepCreator)();
37 
38 public:
41 
43  virtual ~DtReflectedDIGuyObject();
44 
46  virtual DtDIGuyObjectStateRepository* dIGuyObjectStateRep() const;
47 
49  virtual DtDIGuyObjectStateRepository* dsr() const;
50 
53  virtual void setDsr(DtDIGuyObjectStateRepository* newDsr);
54 
57  virtual DtReflectedDIGuyObject* next() const;
58 
61  virtual DtReflectedDIGuyObject* prev() const;
62 
65  virtual DtReflectedDIGuyObject* wrapNext() const;
66 
69  virtual DtReflectedDIGuyObject* wrapPrev() const;
70 
73  virtual void addPostUpdateCallback(
74  DtDIGuyObjectCallbackFunction cb, void* userData);
75 
78  virtual void removePostUpdateCallback(
79  DtDIGuyObjectCallbackFunction cb, void* userData);
80 
81 public:
83  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
84  static DtStateRepCreator stateRepCreator();
85 
86 protected:
89 
92 
93 protected:
94 
96 
97 protected:
99  static DtStateRepCreator theStateRepCreator;
100 };
101 
103 {
105 }
106 
108 {
110 }
111  #else
112 
113 //In DIS there is no diGuy Object. but in order to keep the state rep creators the same
114 //We are including a dummy class that creates the state Rep.
116 {
117 public:
119  typedef DtDIGuyObjectStateRepository* (*DtStateRepCreator)();
120 
121 public:
123  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
124  static DtStateRepCreator stateRepCreator();
125 
126 protected:
127  static DtStateRepCreator theStateRepCreator;
128 };
129 
130 #endif

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)