6 #ifndef MyFederateAmbassador_H_
7 #define MyFederateAmbassador_H_
9 #pragma warning(disable: 4251)
10 #pragma warning(disable: 4786)
11 #pragma warning(disable: 4290)
13 #include <RTI/RTI1516.h>
14 #include <RTI/NullFederateAmbassador.h>
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;
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 (
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,
100 throw (FederateInternalError);
104 throw (FederateInternalError);
107 throw (FederateInternalError);
110 virtual void federationRestoreStatusResponse(
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,
129 std::wstring
const & theObjectInstanceName)
130 throw (FederateInternalError);
133 ObjectInstanceHandle theObject,
135 std::wstring
const & theObjectInstanceName,
137 throw (FederateInternalError);
142 ObjectInstanceHandle theObject,
148 throw (FederateInternalError);
151 ObjectInstanceHandle theObject,
159 throw (FederateInternalError);
162 ObjectInstanceHandle theObject,
169 MessageRetractionHandle theHandle,
171 throw (FederateInternalError);
182 throw (FederateInternalError);
193 throw (FederateInternalError);
203 MessageRetractionHandle theHandle,
205 throw (FederateInternalError);
210 ObjectInstanceHandle theObject,
214 throw (FederateInternalError);
217 ObjectInstanceHandle theObject,
223 throw (FederateInternalError);
226 ObjectInstanceHandle theObject,
231 MessageRetractionHandle theHandle,
233 throw (FederateInternalError);
235 virtual void reportAttributeTransportationType (
236 ObjectInstanceHandle theObject,
239 throw (FederateInternalError);
241 virtual void confirmAttributeTransportationTypeChange (
242 ObjectInstanceHandle theObject,
246 FederateInternalError);
248 virtual void confirmInteractionTransportationTypeChange (
252 FederateInternalError);
255 virtual void reportInteractionTransportationType (
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);