9 #ifndef MyFederateAmbassador_H_
10 #define MyFederateAmbassador_H_
13 #pragma warning(disable: 4251)
14 #pragma warning(disable: 4786)
15 #pragma warning(disable: 4290)
25 using namespace rti1516;
39 bool myNameReservationReturned;
40 bool myNameReservationSucceeded;
41 std::map<ObjectClassHandle, std::wstring> objectClassMap;
42 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
43 std::map<InteractionClassHandle,std::wstring> interactionClassMap;
53 std::set<std::string> ourAttrs;
56 std::set<std::string> ourParms;
74 int otherFederatesReady;
76 bool registerSucceeded;
77 bool announceSyncReceived;
78 bool federationIsSynchronized;
94 objectInstanceNameReservationSucceeded(std::wstring
const &
95 theObjectInstanceName)
97 FederateInternalError);
101 objectInstanceNameReservationFailed(std::wstring
const &
102 theObjectInstanceName)
104 FederateInternalError);
108 ObjectInstanceHandle theObject,
109 ObjectClassHandle theObjectClass,
110 std::wstring
const & theObjectInstanceName)
114 FederateInternalError);
120 (ObjectInstanceHandle theObject,
125 throw (ObjectInstanceNotKnown,
126 AttributeNotRecognized,
127 AttributeNotSubscribed,
128 FederateInternalError);
133 (ObjectInstanceHandle theObject,
139 throw (ObjectInstanceNotKnown,
140 AttributeNotRecognized,
141 AttributeNotSubscribed,
142 FederateInternalError);
147 (ObjectInstanceHandle theObject,
154 throw (ObjectInstanceNotKnown,
155 AttributeNotRecognized,
156 AttributeNotSubscribed,
157 FederateInternalError);
162 (ObjectInstanceHandle theObject,
170 throw (ObjectInstanceNotKnown,
171 AttributeNotRecognized,
172 AttributeNotSubscribed,
173 FederateInternalError);
178 (ObjectInstanceHandle theObject,
185 MessageRetractionHandle theHandle)
186 throw (ObjectInstanceNotKnown,
187 AttributeNotRecognized,
188 AttributeNotSubscribed,
190 FederateInternalError);
195 (ObjectInstanceHandle theObject,
202 MessageRetractionHandle theHandle,
204 throw (ObjectInstanceNotKnown,
205 AttributeNotRecognized,
206 AttributeNotSubscribed,
208 FederateInternalError);
215 (InteractionClassHandle theInteraction,
220 throw (InteractionClassNotRecognized,
221 InteractionParameterNotRecognized,
222 InteractionClassNotSubscribed,
223 FederateInternalError);
228 (InteractionClassHandle theInteraction,
234 throw (InteractionClassNotRecognized,
235 InteractionParameterNotRecognized,
236 InteractionClassNotSubscribed,
237 FederateInternalError);
242 (InteractionClassHandle theInteraction,
249 throw (InteractionClassNotRecognized,
250 InteractionParameterNotRecognized,
251 InteractionClassNotSubscribed,
252 FederateInternalError);
257 (InteractionClassHandle theInteraction,
265 throw (InteractionClassNotRecognized,
266 InteractionParameterNotRecognized,
267 InteractionClassNotSubscribed,
268 FederateInternalError);
273 (InteractionClassHandle theInteraction,
280 MessageRetractionHandle theHandle)
281 throw (InteractionClassNotRecognized,
282 InteractionParameterNotRecognized,
283 InteractionClassNotSubscribed,
285 FederateInternalError);
290 (InteractionClassHandle theInteraction,
297 MessageRetractionHandle theHandle,
299 throw (InteractionClassNotRecognized,
300 InteractionParameterNotRecognized,
301 InteractionClassNotSubscribed,
303 FederateInternalError);
310 throw (ObjectInstanceNotKnown,
311 FederateInternalError);
320 throw (ObjectInstanceNotKnown,
321 FederateInternalError);
330 MessageRetractionHandle theHandle)
331 throw (ObjectInstanceNotKnown,
333 FederateInternalError);
340 throw (ObjectInstanceNotKnown,
341 AttributeNotRecognized,
343 FederateInternalError);
348 throw (InvalidLogicalTime,
349 NoRequestToEnableTimeRegulationWasPending,
350 FederateInternalError);
356 throw (InvalidLogicalTime,
357 NoRequestToEnableTimeConstrainedWasPending,
358 FederateInternalError);
363 throw (InvalidLogicalTime,
364 JoinedFederateIsNotInTimeAdvancingState,
365 FederateInternalError);
370 throw (FederateInternalError);
376 throw (FederateInternalError);
381 throw (FederateInternalError);
387 throw (FederateInternalError);
392 throw (FederateInternalError);