VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
updateControlCbInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
10 
11 #ifndef DtUpdateControlCbInfo_H_
12 #define DtUpdateControlCbInfo_H_
13 
14 #if DtHLA
15 
16 #include "stateMsg.h"
17 #include "rtiNamespace.h"
18 
19 #if DtHLA_1516
20 typedef void (*DtUpdateControlCb)( RTI::ObjectInstanceHandle instanceHandle,
21  const RTI::AttributeHandleSet& attributeSet,
22  void* usr);
23 #else
24 typedef void (*DtUpdateControlCb)( RTI::ObjectHandle instanceHandle,
25  const RTI::AttributeHandleSet& attributeSet,
26  void* usr);
27 #endif
28 
31 
37 {
38 public:
39 
42 #if DtHLA_1516
43  RTI::ObjectInstanceHandle hand,
44 #else
45  RTI::ObjectHandle hand,
46 #endif
48  void* usr);
49 
51  virtual ~DtUpdateControlCbInfo();
52 
55  const DtUpdateControlCbInfo& orig);
56 
58  DtUpdateControlCbInfo& operator=(
59  const DtUpdateControlCbInfo& orig);
60 
62  virtual int match(const DtUpdateControlCbInfo* const other) const;
63 
65  virtual int operator==(const DtUpdateControlCbInfo& other) const;
66 
68 #if DtHLA_1516
69  virtual const RTI::ObjectInstanceHandle& objectHandle() const;
70 #else
71  virtual const RTI::ObjectHandle& objectHandle() const;
72 #endif
73 
75  virtual const DtUpdateControlCb& cbFunction() const;
76 
78  virtual void* userData() const;
79 
80 protected:
81 
82 #if DtHLA_1516
83  RTI::ObjectInstanceHandle myHand;
84 #else
85  RTI::ObjectHandle myHand;
86 #endif
88  void* myUsr;
89 };
90 
93 
94 #if DtHLA_1516
95 inline const RTI::ObjectInstanceHandle&
96 #else
97 inline const RTI::ObjectHandle&
98 #endif
100 {
101  return myHand;
102 }
103 
105 {
106  return myFunc;
107 }
108 
110 {
111  return myUsr;
112 }
113 
114 #endif
115 #endif
116 
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual void * userData() const
Get the user data.
Definition: updateControlCbInfo.h:109
DtUpdateControlCb myFunc
Definition: updateControlCbInfo.h:87
DtUpdateControlCb DtUpdatesOnCb
Definition: updateControlCbInfo.h:29
DtUpdateControlCbInfo DtUpdatesOnCbInfo
Definition: updateControlCbInfo.h:91
RTI::ObjectHandle myHand
Definition: updateControlCbInfo.h:85
virtual const DtUpdateControlCb & cbFunction() const
Get the callback function.
Definition: updateControlCbInfo.h:104
virtual const RTI::ObjectHandle & objectHandle() const
Get the object handle.
Definition: updateControlCbInfo.h:99
Instances of DtUpdateControlCbInfo are used for providing a callback when the RTI update control serv...
Definition: updateControlCbInfo.h:36
DtUpdateControlCb DtUpdatesOffCb
Definition: updateControlCbInfo.h:30
void * myUsr
Definition: updateControlCbInfo.h:88
void(* DtUpdateControlCb)(RTI::ObjectHandle instanceHandle, const RTI::AttributeHandleSet &attributeSet, void *usr)
Definition: updateControlCbInfo.h:24

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)