VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedEntityHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef reflectedEntityHLA_H_
8 #define reflectedEntityHLA_H_
9 
10 #if DtHLA
11 
12 #include "entityStateRepository.h"
13 #include "reflectedObjectHLA.h"
14 
19 
21 
23 typedef void (*DtEntityCallbackFunction)(
24  DtReflectedEntity* obj, void* userData);
25 
30 {
31 public:
32 
34  typedef DtEntityStateRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40 
45 
48  DtBaseStateRepCreator esrToUse);
49 
51  virtual ~DtReflectedEntity();
52 
55  virtual DtEntityStateRepository* entityStateRep() const;
56 
58  virtual DtEntityStateRepository* esr() const;
59 
61  virtual DtReflectedEntity* next() const;
62 
64  virtual DtReflectedEntity* prev() const;
65 
68  virtual DtReflectedEntity* wrapNext() const;
69 
72  virtual DtReflectedEntity* wrapPrev() const;
73 
75  virtual void addPostUpdateCallback(
76  DtEntityCallbackFunction cb, void* userData);
77  virtual void removePostUpdateCallback(
78  DtEntityCallbackFunction cb, void* userData);
79 
80  virtual void diGuyObjectUpdated();
81 
85  virtual DtOwnershipHandler* setOwnershipHandler( DtOwnershipHandler* handler );
86 
88  virtual void acquireObject();
89 
90 public:
91 
93  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
94 
95 public:
96 
98  typedef DtStateRepCreator DtEsrCreator;
99 
101 #if DtHLA_1516
102  virtual RTI::ObjectInstanceHandle entityObjectId() const;
103 #else
104  virtual RTI::ObjectHandle entityObjectId() const;
105 #endif
106 
109  static DtEsrCreator setEsrCreator(DtEsrCreator creator);
110 
111 protected:
112 
115 
118 
119 protected:
120 
121  static DtStateRepCreator theStateRepCreator;
122 };
123 
125 {
127 }
128 
130 {
132 }
133 
134 #endif
135 #endif
136 
Instances of DtReflectedEntity are used to represent a simulation entity reflected across a network (...
Definition: reflectedEntityHLA.h:29
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtEntityCallbackFunction)(DtReflectedEntity *obj, void *userData)
Callback function that takes a DtReflectedObject and user data.
Definition: reflectedEntityHLA.h:23
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 DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:37
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
virtual DtEntityStateRepository * entityStateRep() const
Returns a pointer to the EntityStateRepository - through which you can inspect current state informat...
Definition: reflectedEntityHLA.h:124
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Contains the DtEntityStateRepository class declaration.
static DtStateRepCreator theStateRepCreator
Definition: reflectedEntityHLA.h:121
virtual DtEntityStateRepository * esr() const
Synonym for entityStateRep().
Definition: reflectedEntityHLA.h:129
This is a base class meant to encapsulate user callbacks on ownership management services.
Definition: ownershipHandlerHLA.h:27
This file provides a declaration of the class DtReflectedObject.
DtStateRepCreator DtEsrCreator
Definition: reflectedEntityHLA.h:98

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)