VR-Link API Documentation for HLA 1516
 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
virtual DtDIGuyObjectStateRepository * dsr() const
Shorter version of lifeformRep.
Definition: reflectedDiGuyObject.h:107
virtual DtDIGuyObjectStateRepository * dIGuyObjectStateRep() const
Returns the DIGuyObject&#39;s state repository.
Definition: reflectedDiGuyObject.h:102
Contains the DtDIGuyObjectStateRepository class declaration.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtDIGuyObjectStateRepository * myConstructedDsr
Definition: reflectedDiGuyObject.h:95
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – Not Implemented
Instances of DtHlaObject are used to represent HLA objects which are communicated across the network...
Definition: hlaObject.h:56
Instances of DtReflectedDIGuyObject are used to represent a simulated HLAobjectRoot.DIGuyObject object reflected across a network.
Definition: reflectedDiGuyObject.h:31
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
void(* DtDIGuyObjectCallbackFunction)(DtReflectedDIGuyObject *obj, void *userData)
Signature of the callback function that takes a DtReflectedDIGuyObject and user data.
Definition: reflectedDiGuyObject.h:24
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:177
Instances of DtDIGuyObjectStateRepository are used to store state data for DIGuyObject objects...
Definition: diGuyObjectStateRepository.h:27
static DtStateRepCreator theStateRepCreator
The function called to create state repositories.
Definition: reflectedDiGuyObject.h:99
This file provides a declaration of the class DtReflectedObject.

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)