VR-Link API Documentation for HLA Evolved
 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-2010 VT MAK
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(RTI::InteractionClassHandle h,
52 #if DtHLA_1516
53  const RTI::ParameterHandleValueMap& p,
54  const RTI::LogicalTime *fedTime,
55  const RTI::VariableLengthData &tag,
56  const RTI::RegionHandleSet* regions = 0
57  #if DtHLA_1516_EVOLVED
58  , RTI::FederateHandle fedHandle=RTI::FederateHandle()
59  #endif
60 #else
61  const RTI::ParameterHandleValuePairSet& p,
62  const RTI::FedTime *fedTime,
63  const char* tag = NULL,
64  const RTI::Region* region = 0
65 #endif
66  );
67 
68 protected:
69 
72 
74  DtInteractionManager& operator=(const DtInteractionManager& orig);
75 
78  void emptyCbList();
79 
81  virtual DtList* cbList(RTI::InteractionClassHandle handle);
82 
83 protected:
84 
86 
88 
92 };
93 
94 #endif
95 #endif
96 
DtHashlist myCbLists
DtHashlist that maps object class handles (DtIntHashKeys) to pointers to DtLists of callback function...
Definition: interactionManager.h:91
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtExerciseConn * myExConn
Definition: interactionManager.h:85
Defines DtHashlist and several helper functions.
DtInteractionFactory * myFactory
Definition: interactionManager.h:87
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
class DtInteractionManager:
Definition: interactionManager.h:25
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
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 Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)