VR-Link API Documentation for HLA 1.3
interactionWithEncDec.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtInteractionWithEncDec_H_
8 #define DtInteractionWithEncDec_H_
9 
10 #if DtHLA
11 
12 
13 #include "rtiNamespace.h"
14 #include "interactionHLA.h"
15 
19 
22 class DT_DLL_VL DtInteractionRep;
23 
28 
30 {
31 public:
32 
35 
37  virtual ~DtInteractionWithEncDec();
38 
41 
44 
53  virtual void setExConn(DtExerciseConn* exConn,
54  DtInterClassDesc* classDesc = NULL);
55 
59 #if DtHLA_1516
60  virtual const RTI::ParameterHandleValueMap& phvm() const;
61 #else
62  virtual const RTI::ParameterHandleValuePairSet& phvps() const;
63 #endif
64 
66 #if DtHLA_1516
67  virtual void setFromPhvm(
68  const RTI::ParameterHandleValueMap& pvList);
69 #else
70  virtual void setFromPhvps(
71  const RTI::ParameterHandleValuePairSet& pvList);
72 #endif
73 
81  virtual void useThese(DtInteractionEncoder* enc,
83  DtInteractionRep* data);
84 
86  virtual DtInteractionEncoder* encoder() const;
87 
89  virtual DtInteractionDecoder* decoder() const;
90 
91 protected:
92 
96  virtual DtInteractionDecoder* createDecoder(
97  DtExerciseConn* exConn) const;
98 
102  virtual DtInteractionEncoder* createEncoder(
103  DtExerciseConn* exConn) const;
104 
106  virtual DtInteractionDecoder* decoderToUse(
107  DtExerciseConn* exConn) const;
108 
110  virtual DtInteractionEncoder* encoderToUse(
111  DtExerciseConn* exConn) const;
112 
113 protected:
114 
117  DtInteractionRep* myData;
118 
119 private:
120 
125  mutable RTI::InteractionClassHandle myMutableEncoderClassHandle;
126  mutable RTI::InteractionClassHandle myMutableDecoderClassHandle;
127 
128 };
129 
131 {
132  return myEncoder;
133 }
134 
136 {
137  return myDecoder;
138 }
139 
140 #endif
141 #endif
142 
143 
144 
145 
146 

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)