VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
receiveInteractionCbInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef receiveInteractionCbInfo_H_
11 #define receiveInteractionCbInfo_H_
12 
13 #if DtHLA
14 
15 #include "rtiNamespace.h"
16 #include <vlutil/vlMachineTypes.h>
17 
18 #include "region.h"
19 
21 
22 
23 typedef void (*DtReceiveInteractionCb)(DtInteraction* inter, void* usr);
24 
29 {
30 public:
31 
33  DtReceiveInteractionCbInfo(RTI::InteractionClassHandle h,
35  void* usr);
36 
37  DtReceiveInteractionCbInfo(RTI::InteractionClassHandle h,
39  void* usr,
40  DtDDMRegionSP region);
41 
43  virtual ~DtReceiveInteractionCbInfo();
44 
47  const DtReceiveInteractionCbInfo& orig);
48 
50  DtReceiveInteractionCbInfo& operator=(
51  const DtReceiveInteractionCbInfo& orig);
52 
54  virtual int match(const DtReceiveInteractionCbInfo* const other) const;
55 
57  virtual int operator==(const DtReceiveInteractionCbInfo& other) const;
58 
60  virtual const RTI::InteractionClassHandle& interactionClass() const;
61 
63  virtual const DtReceiveInteractionCb& cbFunction() const;
64 
66  virtual void* userData() const;
67 
68 protected:
69 
70  RTI::InteractionClassHandle myClass;
72  void* myUsr;
74 };
75 
76 inline const RTI::InteractionClassHandle&
78 {
79  return myClass;
80 }
81 
82 inline const DtReceiveInteractionCb&
84 {
85  return myFunc;
86 }
87 
89 {
90  return myUsr;
91 }
92 
93 #endif
94 #endif
95 
DtInteraction is an abstract base class for representing HLA interactions (or events) (as opposed to ...
Definition: interactionHLA.h:33
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtReceiveInteractionCb)(DtInteraction *inter, void *usr)
Definition: receiveInteractionCbInfo.h:23
DtReceiveInteractionCb myFunc
Definition: receiveInteractionCbInfo.h:71
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
virtual const RTI::InteractionClassHandle & interactionClass() const
Get the interaction class handle.
Definition: receiveInteractionCbInfo.h:77
void * myUsr
Definition: receiveInteractionCbInfo.h:72
virtual void * userData() const
Get the user data.
Definition: receiveInteractionCbInfo.h:88
RTI::InteractionClassHandle myClass
Definition: receiveInteractionCbInfo.h:70
virtual const DtReceiveInteractionCb & cbFunction() const
Get the callback function.
Definition: receiveInteractionCbInfo.h:83
DtDDMRegionSP myRegion
Definition: receiveInteractionCbInfo.h:73
This file contains typedefs for machine dependant types.
Instances of DtReceiveInteractionCbInfo are used for providing a callback when an interaction is rece...
Definition: receiveInteractionCbInfo.h:28

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)