VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
interactionManager.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 interactionManager_H_
11 #define interactionManager_H_
12 
13 #if DtHLA
14 
15 #include "interactionFactory.h"
16 #include "callbacks.h"
17 #include <vlutil/vlHashlist.h>
18 #include "rtiNamespace.h"
19 
24 
26 {
27 public:
28 
31  DtExerciseConn* exConn);
32 
34  virtual ~DtInteractionManager();
35 
38  virtual void addInteractionCallback( RTI::InteractionClassHandle h,
40  void* usr,
41  DtDDMRegionSP region = DtDDMRegionSP());
42 
43  virtual void removeInteractionCallback( RTI::InteractionClassHandle h,
45  void* usr,
46  DtDDMRegionSP region = DtDDMRegionSP());
47 
48 
51  virtual void processInteraction(
52  RTI::InteractionClassHandle h,
53 #if DtHLA_1516
54  const RTI::ParameterHandleValueMap& p,
55  const RTI::LogicalTime* fedTime,
56  const RTI::VariableLengthData& tag,
57  const RTI::RegionHandleSet* region = 0
58  #if DtHLA_1516_EVOLVED
59  , RTI::FederateHandle fedHandle=RTI::FederateHandle()
60  #endif
61 #else
62  const RTI::ParameterHandleValuePairSet& p,
63  const RTI::FedTime* fedTime,
64  const char* tag = NULL,
65  const RTI::Region* region = 0
66 #endif
67  );
68 
69 #if DtHLA_4
70  virtual void processDirectedInteraction(
73  RTI::InteractionClassHandle h,
74  const RTI::ParameterHandleValueMap& p,
75  const RTI::LogicalTime* fedTime,
76  const RTI::VariableLengthData& tag,
77  const RTI::FederateHandle fedHandle = RTI::FederateHandle()
78  );
79 #endif
80 
81 protected:
82 
85 
87  DtInteractionManager& operator=(const DtInteractionManager& orig);
88 
91  void emptyCbList();
92 
94  virtual DtList* cbList(RTI::InteractionClassHandle handle);
95 
96 protected:
97 
99 
101 
105 };
106 
107 #endif
108 #endif
109 
DtHashlist myCbLists
DtHashlist that maps object class handles (DtIntHashKeys) to pointers to DtLists of callback function...
Definition: interactionManager.h:104
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtExerciseConn * myExConn
Definition: interactionManager.h:98
Defines DtHashlist and several helper functions.
DtInteractionFactory * myFactory
Definition: interactionManager.h:100
DtList is deprecated, please use std::list&lt;T&gt;.
Definition: vlList.h:71
void(* DtReceiveInteractionCb)(DtInteraction *inter, void *usr)
Definition: receiveInteractionCbInfo.h:23
#define LogicalTime
Definition: hlaLogicalTime.h:18
Instances of DtInteractionFactory are used to create derived DtInteractions based on Interaction Clas...
Definition: interactionFactory.h:29
std::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
class DtInteractionManager:
Definition: interactionManager.h:25
DtHashlist is deprecated and provided for backwards compatibility only.
Definition: vlHashlist.h:69
This file provides a declaration of the class DtInteractionFactory.
This file is used as a convenience to group RTI related callbacks together.

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)