VR-Link API Documentation for DIS
 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 
25 class DT_DLL_VL DtInteractionManager
26 {
27 public:
28 
30  DtInteractionManager(DtInteractionFactory* factory,
31  DtExerciseConn* exConn);
32 
34  virtual ~DtInteractionManager();
35 
38  virtual void addInteractionCallback( RTI::InteractionClassHandle h,
39  DtReceiveInteractionCb cb,
40  void* usr,
41  DtDDMRegionSP region = DtDDMRegionSP());
42 
43  virtual void removeInteractionCallback( RTI::InteractionClassHandle h,
44  DtReceiveInteractionCb cb,
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 
71  DtInteractionManager(const DtInteractionManager& orig);
72 
74  DtInteractionManager& operator=(const DtInteractionManager& orig);
75 
78  void emptyCbList();
79 
81  virtual DtList* cbList(RTI::InteractionClassHandle handle);
82 
83 protected:
84 
85  DtExerciseConn* myExConn;
86 
87  DtInteractionFactory* myFactory;
88 
91  DtHashlist myCbLists;
92 };
93 
94 #endif
95 #endif
96 

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)