VR-Link API Documentation for HLA 1.3
hUnknownInter.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 DtUnknownInteraction_H_
11 #define DtUnknownInteraction_H_
12 
13 #if DtHLA
14 
15 
16 #include "hInteraction.h"
17 #include "hostStructs.h"
18 #include "exerciseConn.h"
19 #include "rtiNamespace.h"
20 
22 
23 
24 
26 typedef void (*DtUnknownInteractionCb)
27  (DtUnknownInteraction* inter, void* usr);
28 
33 
35 {
36 public:
37 
40 
42 #if DtHLA_1516
43  DtUnknownInteraction(RTI::InteractionClassHandle handle,
44  const RTI::ParameterHandleValueMap& pvMap);
45 #else
46  DtUnknownInteraction(RTI::InteractionClassHandle handle,
47  const RTI::ParameterHandleValuePairSet& pvList);
48 #endif
49 
51  virtual ~DtUnknownInteraction();
52 
55 
58 
60 #if DtHLA_1516
61  virtual const RTI::ParameterHandleValueMap& phvm() const;
62 #else
63  virtual const RTI::ParameterHandleValuePairSet& phvps() const;
64 #endif
65 
67 #if DtHLA_1516
68  virtual void setFromPhvm(
69  const RTI::ParameterHandleValueMap& pvMap);
70 #else
71  virtual void setFromPhvps(
72  const RTI::ParameterHandleValuePairSet& pvList);
73 #endif
74 
80  virtual void setExConn(DtExerciseConn* exConn, DtInterClassDesc* classDesc);
81 
83  virtual void printData() const;
84 
86  virtual const char* name() const;
87 
88 public:
89 
92  static DtInteraction* create();
93 
96  static void addCallback(RTI::InteractionClassHandle handle,
97  DtExerciseConn* conn,
98  DtUnknownInteractionCb cb, void* usr, DtDDMRegionSP region = DtDDMRegionSP());
99  static void removeCallback(RTI::InteractionClassHandle handle,
100  DtExerciseConn* conn,
101  DtUnknownInteractionCb cb, void* usr, DtDDMRegionSP region = DtDDMRegionSP());
102 
103 protected:
104 
107 #if !DtHLA_1516
108  void internalSetFromPhvps( const RTI::ParameterHandleValuePairSet& pvList);
109 #endif
110 
111 protected:
112 
113 #if DtHLA_1516
114  RTI::ParameterHandleValueMap myParams;
115 #else
116  RTI::ParameterHandleValuePairSet* myParams;
117 #endif
118  RTI::InteractionClassHandle myHandle;
119 };
120 
121 #endif
122 #endif
123 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)