VR-Link API Documentation for DIS
 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-2010 VT MAK
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 
28 class DT_DLL_VL DtReceiveInteractionCbInfo
29 {
30 public:
31 
33  DtReceiveInteractionCbInfo(RTI::InteractionClassHandle h,
34  DtReceiveInteractionCb cb,
35  void* usr);
36 
37  DtReceiveInteractionCbInfo(RTI::InteractionClassHandle h,
38  DtReceiveInteractionCb cb,
39  void* usr,
40  DtDDMRegionSP region);
41 
43  virtual ~DtReceiveInteractionCbInfo();
44 
46  DtReceiveInteractionCbInfo(
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;
71  DtReceiveInteractionCb myFunc;
72  void* myUsr;
73  DtDDMRegionSP myRegion;
74 };
75 
76 inline const RTI::InteractionClassHandle&
77  DtReceiveInteractionCbInfo::interactionClass() const
78 {
79  return myClass;
80 }
81 
82 inline const DtReceiveInteractionCb&
83  DtReceiveInteractionCbInfo::cbFunction() const
84 {
85  return myFunc;
86 }
87 
88 inline void* DtReceiveInteractionCbInfo::userData() const
89 {
90  return myUsr;
91 }
92 
93 #endif
94 #endif
95 
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
const bool operator==(const DtU128 &lhs, const DtU128 &rhs)
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains typedefs for machine dependant types.

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)