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 rti1516;
25 bool myReceivedInitiateFederateSave;
26 bool myReceivedFederationSaved;
27 bool myReceivedFederationNotSaved;
33 bool myReceivedRequestFederationRestoreSucceeded;
34 bool myReceivedRequestFederationRestoreFailed;
35 bool myReceivedFederationRestoreBegun;
36 bool myReceivedInitiateFederateRestore;
37 bool myReceivedFederationRestored;
38 bool myReceivedFederationNotRestored;
41 FederateHandle myRestoreFederateHandle;
60 std::wstring
const & label)
61 throw (UnableToPerformSave, FederateInternalError);
64 throw (FederateInternalError);
67 throw (FederateInternalError);
69 virtual void federationSaveStatusResponse(
71 throw (FederateInternalError);
76 throw (FederateInternalError);
79 throw (FederateInternalError);
83 throw (FederateInternalError);
87 std::wstring
const & label,
88 FederateHandle handle)
89 throw (SpecifiedSaveLabelDoesNotExist,
90 CouldNotInitiateRestore,
91 FederateInternalError);
95 throw (FederateInternalError);
98 throw (FederateInternalError);
101 virtual void federationRestoreStatusResponse(
102 FederateHandleRestoreStatusPairVector
const &
103 theFederateStatusVector)
104 throw (FederateInternalError);
109 objectInstanceNameReservationSucceeded(std::wstring
const &
110 theObjectInstanceName)
112 FederateInternalError);
116 objectInstanceNameReservationFailed(std::wstring
const &
117 theObjectInstanceName)
119 FederateInternalError);
123 ObjectInstanceHandle theObject,
124 ObjectClassHandle theObjectClass,
125 std::wstring
const & theObjectInstanceName)
129 FederateInternalError);
135 (ObjectInstanceHandle theObject,
137 VariableLengthData
const & theUserSuppliedTag,
140 throw (ObjectInstanceNotKnown,
141 AttributeNotRecognized,
142 AttributeNotSubscribed,
143 FederateInternalError);
148 (ObjectInstanceHandle theObject,
150 VariableLengthData
const & theUserSuppliedTag,
154 throw (ObjectInstanceNotKnown,
155 AttributeNotRecognized,
156 AttributeNotSubscribed,
157 FederateInternalError);
162 (ObjectInstanceHandle theObject,
164 VariableLengthData
const & theUserSuppliedTag,
167 LogicalTime
const & theTime,
169 throw (ObjectInstanceNotKnown,
170 AttributeNotRecognized,
171 AttributeNotSubscribed,
172 FederateInternalError);
177 (ObjectInstanceHandle theObject,
179 VariableLengthData
const & theUserSuppliedTag,
182 LogicalTime
const & theTime,
185 throw (ObjectInstanceNotKnown,
186 AttributeNotRecognized,
187 AttributeNotSubscribed,
188 FederateInternalError);
193 (ObjectInstanceHandle theObject,
195 VariableLengthData
const & theUserSuppliedTag,
198 LogicalTime
const & theTime,
200 MessageRetractionHandle theHandle)
201 throw (ObjectInstanceNotKnown,
202 AttributeNotRecognized,
203 AttributeNotSubscribed,
205 FederateInternalError);
210 (ObjectInstanceHandle theObject,
212 VariableLengthData
const & theUserSuppliedTag,
215 LogicalTime
const & theTime,
217 MessageRetractionHandle theHandle,
219 throw (ObjectInstanceNotKnown,
220 AttributeNotRecognized,
221 AttributeNotSubscribed,
223 FederateInternalError);
230 (InteractionClassHandle theInteraction,
232 VariableLengthData
const & theUserSuppliedTag,
235 throw (InteractionClassNotRecognized,
236 InteractionParameterNotRecognized,
237 InteractionClassNotSubscribed,
238 FederateInternalError);
243 (InteractionClassHandle theInteraction,
245 VariableLengthData
const & theUserSuppliedTag,
249 throw (InteractionClassNotRecognized,
250 InteractionParameterNotRecognized,
251 InteractionClassNotSubscribed,
252 FederateInternalError);
257 (InteractionClassHandle theInteraction,
259 VariableLengthData
const & theUserSuppliedTag,
262 LogicalTime
const & theTime,
264 throw (InteractionClassNotRecognized,
265 InteractionParameterNotRecognized,
266 InteractionClassNotSubscribed,
267 FederateInternalError);
272 (InteractionClassHandle theInteraction,
274 VariableLengthData
const & theUserSuppliedTag,
277 LogicalTime
const & theTime,
280 throw (InteractionClassNotRecognized,
281 InteractionParameterNotRecognized,
282 InteractionClassNotSubscribed,
283 FederateInternalError);
288 (InteractionClassHandle theInteraction,
290 VariableLengthData
const & theUserSuppliedTag,
293 LogicalTime
const & theTime,
295 MessageRetractionHandle theHandle)
296 throw (InteractionClassNotRecognized,
297 InteractionParameterNotRecognized,
298 InteractionClassNotSubscribed,
300 FederateInternalError);
305 (InteractionClassHandle theInteraction,
307 VariableLengthData
const & theUserSuppliedTag,
310 LogicalTime
const & theTime,
312 MessageRetractionHandle theHandle,
314 throw (InteractionClassNotRecognized,
315 InteractionParameterNotRecognized,
316 InteractionClassNotSubscribed,
318 FederateInternalError);
325 VariableLengthData
const & theUserSuppliedTag,
327 throw (ObjectInstanceNotKnown,
328 FederateInternalError);
333 VariableLengthData
const & theUserSuppliedTag,
335 LogicalTime
const & theTime,
337 throw (ObjectInstanceNotKnown,
338 FederateInternalError);
343 VariableLengthData
const & theUserSuppliedTag,
345 LogicalTime
const & theTime,
347 MessageRetractionHandle theHandle)
348 throw (ObjectInstanceNotKnown,
350 FederateInternalError);