6 #ifndef MyFederateAmbassador_H_
7 #define MyFederateAmbassador_H_
9 #pragma warning(disable: 4251)
10 #pragma warning(disable: 4786)
11 #pragma warning(disable: 4290)
18 using namespace rti1516e;
24 bool myNameReservationReturned;
25 bool myNameReservationSucceeded;
26 bool myReceivedInitiateFederateSave;
27 bool myReceivedFederationSaved;
28 bool myReceivedFederationNotSaved;
29 bool myReceivedFederationSaveStatusResponse;
30 std::wstring mySaveLabel;
34 bool myReceivedRequestFederationRestoreSucceeded;
35 bool myReceivedRequestFederationRestoreFailed;
36 bool myReceivedFederationRestoreBegun;
37 bool myReceivedInitiateFederateRestore;
38 bool myReceivedFederationRestored;
39 bool myReceivedFederationNotRestored;
40 bool myReceivedFederationRestoreStatusResponse;
41 std::wstring myRestoreLabel;
42 FederateHandle myRestoreFederateHandle;
46 std::map<ObjectClassHandle, std::wstring> objectClassMap;
47 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
48 std::map<InteractionClassHandle, std::wstring> interactionClassMap;
61 virtual void reportFederationExecutions (
62 FederationExecutionInformationVector
const &
63 theFederationExecutionInformationList)
65 FederateInternalError);
69 std::wstring
const & label)
70 throw (FederateInternalError);
74 throw (FederateInternalError);
77 throw (FederateInternalError);
80 virtual void federationSaveStatusResponse(
82 throw (FederateInternalError);
86 throw (FederateInternalError);
89 throw (FederateInternalError);
93 throw (FederateInternalError);
97 std::wstring
const & label,
98 std::wstring
const & federateName,
99 FederateHandle handle)
100 throw (FederateInternalError);
104 throw (FederateInternalError);
107 throw (FederateInternalError);
110 virtual void federationRestoreStatusResponse(
111 FederateRestoreStatusVector
const &
112 theFederateRestoreStatusVector)
113 throw (FederateInternalError);
117 virtual void objectInstanceNameReservationSucceeded(
118 std::wstring
const & theObjectInstanceName)
119 throw (FederateInternalError);
121 virtual void objectInstanceNameReservationFailed(
122 std::wstring
const & theObjectInstanceName)
123 throw (FederateInternalError);
127 ObjectInstanceHandle theObject,
128 ObjectClassHandle theObjectClass,
129 std::wstring
const & theObjectInstanceName)
130 throw (FederateInternalError);
133 ObjectInstanceHandle theObject,
134 ObjectClassHandle theObjectClass,
135 std::wstring
const & theObjectInstanceName,
136 FederateHandle producingFederate)
137 throw (FederateInternalError);
142 ObjectInstanceHandle theObject,
144 VariableLengthData
const & theUserSuppliedTag,
147 SupplementalReflectInfo theReflectInfo)
148 throw (FederateInternalError);
151 ObjectInstanceHandle theObject,
153 VariableLengthData
const & theUserSuppliedTag,
156 LogicalTime
const & theTime,
158 SupplementalReflectInfo theReflectInfo)
159 throw (FederateInternalError);
162 ObjectInstanceHandle theObject,
164 VariableLengthData
const & theUserSuppliedTag,
167 LogicalTime
const & theTime,
169 MessageRetractionHandle theHandle,
170 SupplementalReflectInfo theReflectInfo)
171 throw (FederateInternalError);
176 InteractionClassHandle theInteraction,
178 VariableLengthData
const & theUserSuppliedTag,
181 SupplementalReceiveInfo theReceiveInfo)
182 throw (FederateInternalError);
185 InteractionClassHandle theInteraction,
187 VariableLengthData
const & theUserSuppliedTag,
190 LogicalTime
const & theTime,
192 SupplementalReceiveInfo theReceiveInfo)
193 throw (FederateInternalError);
196 InteractionClassHandle theInteraction,
198 VariableLengthData
const & theUserSuppliedTag,
201 LogicalTime
const & theTime,
203 MessageRetractionHandle theHandle,
204 SupplementalReceiveInfo theReceiveInfo)
205 throw (FederateInternalError);
210 ObjectInstanceHandle theObject,
211 VariableLengthData
const & theUserSuppliedTag,
213 SupplementalRemoveInfo theRemoveInfo)
214 throw (FederateInternalError);
217 ObjectInstanceHandle theObject,
218 VariableLengthData
const & theUserSuppliedTag,
220 LogicalTime
const & theTime,
222 SupplementalRemoveInfo theRemoveInfo)
223 throw (FederateInternalError);
226 ObjectInstanceHandle theObject,
227 VariableLengthData
const & theUserSuppliedTag,
229 LogicalTime
const & theTime,
231 MessageRetractionHandle theHandle,
232 SupplementalRemoveInfo theRemoveInfo)
233 throw (FederateInternalError);
235 virtual void reportAttributeTransportationType (
236 ObjectInstanceHandle theObject,
237 AttributeHandle theAttribute,
239 throw (FederateInternalError);
241 virtual void confirmAttributeTransportationTypeChange (
242 ObjectInstanceHandle theObject,
246 FederateInternalError);
248 virtual void confirmInteractionTransportationTypeChange (
249 InteractionClassHandle theInteraction,
252 FederateInternalError);
255 virtual void reportInteractionTransportationType (
256 FederateHandle federateHandle,
257 InteractionClassHandle theInteraction,
260 FederateInternalError);
262 virtual void multipleObjectInstanceNameReservationSucceeded (
263 std::set<std::wstring>
const & theObjectInstanceNames)
265 FederateInternalError);
267 virtual void multipleObjectInstanceNameReservationFailed (
268 std::set<std::wstring>
const & theObjectInstanceNames)
270 FederateInternalError);