VR-Link API Documentation for HLA 1.3
hTransCtlInter.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 hTransCtlInter_H_
8 #define hTransCtlInter_H_
9 
10 #if DtHLA
11 
12 #include "hInterWData.h"
13 #include "recordSetList.h"
14 
18 
21 
23 typedef void (*DtTransferControlInteractionCb)
24  (DtTransferControlInteraction* inter, void *user);
25 
30 
32 {
33 public:
34 
37 
40  (const DtTransferControlInteraction& other);
41 
44 
47  (const DtTransferControlInteraction& other);
48 
50  virtual void printData() const;
51 
53  virtual void printDataToStream(std::ostream& stream) const;
54 
56  virtual void setOriginatingEntityID(const DtEntityIdentifier& entity);
57  virtual const DtEntityIdentifier& originatingEntityID() const;
58 
60  virtual void setReceivingEntityID(const DtEntityIdentifier &entity);
61  virtual const DtEntityIdentifier receivingEntityID() const;
62 
64  virtual void setRequestID(DtU32 id);
65  virtual DtU32 requestID() const;
66 
67 
69  virtual void setTransferType(const DtTransferType type);
70  virtual const DtTransferType transferType() const;
71 
73  virtual void setTransferredEntityID(const DtGlobalObjectDesignator &);
74  virtual const DtGlobalObjectDesignator &transferredEntityID() const;
75 
79  virtual void setNumRecordSets(DtU32 number);
80  virtual DtU32 numRecordSets() const;
81 
84  virtual bool setRecordSet(int index, const DtRecordSet &set);
85  virtual const DtRecordSet &recordSet(int index,
86  bool *valid = NULL);
87 
89  virtual bool getRecordSet(int index, DtRecordSet& recSet) const;
90 
92  virtual const DtRecordSetList &recordSetList() const;
93  virtual DtRecordSetList *recordSetList();
94 
97  virtual const char* name() const;
98 
99 public:
102  static DtInteraction* create();
103 
106  static void addCallback(DtExerciseConn *conn,
107  DtTransferControlInteractionCb cb, void *usr,
108  DtDDMRegionSP region = DtDDMRegionSP());
109  static void removeCallback(DtExerciseConn *conn,
110  DtTransferControlInteractionCb cb, void *usr,
111  DtDDMRegionSP region = DtDDMRegionSP());
112 
113 protected:
114 
121 
122 };
123 
127 inline void
129  (const DtEntityIdentifier& id)
130 {
131  myOriginatingEnt = id;
132 }
133 
134 inline const DtEntityIdentifier &
136 {
137  return myOriginatingEnt;
138 }
139 
140 inline void
142  const DtEntityIdentifier &id)
143 {
144  myReceivingEnt = id;
145 }
146 
147 inline const DtEntityIdentifier
149 {
150  return myReceivingEnt;
151 }
152 
153 inline void
155 {
156  myRequestId = id;
157 }
158 
159 inline DtU32
161 {
162  return myRequestId;
163 }
164 
165 inline void
167 {
168  myTransferType = type;
169 }
170 
171 inline const DtTransferType
173 {
174  return myTransferType;
175 }
176 
177 inline void
179  const DtGlobalObjectDesignator &id)
180 {
181  myTransferEntity = id;
182 }
183 
184 inline const DtGlobalObjectDesignator&
186 {
187  return myTransferEntity;
188 }
189 
190 inline const DtRecordSetList &
192 {
193  return myRecordSetList;
194 }
195 
196 inline DtRecordSetList *
198 {
199  return &myRecordSetList;
200 }
201 
202 inline const char*
204 {
205  return "DtTransferControlInteraction";
206 }
207 
208 #endif
209 #endif
210 

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)