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;
23 bool myNameReservationReturned;
24 bool myNameReservationSucceeded;
25 bool myReceivedInitiateFederateSave;
26 bool myReceivedFederationSaved;
27 bool myReceivedFederationNotSaved;
28 bool myReceivedFederationSaveStatusResponse;
29 std::wstring mySaveLabel;
33 bool myReceivedRequestFederationRestoreSucceeded;
34 bool myReceivedRequestFederationRestoreFailed;
35 bool myReceivedFederationRestoreBegun;
36 bool myReceivedInitiateFederateRestore;
37 bool myReceivedFederationRestored;
38 bool myReceivedFederationNotRestored;
39 bool myReceivedFederationRestoreStatusResponse;
40 std::wstring myRestoreLabel;
45 std::map<ObjectClassHandle, std::wstring> objectClassMap;
46 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
47 std::map<InteractionClassHandle, std::wstring> interactionClassMap;
61 std::wstring
const & label)
62 throw (FederateInternalError);
66 throw (FederateInternalError);
69 throw (FederateInternalError);
72 virtual void federationSaveStatusResponse(
74 throw (FederateInternalError);
78 throw (FederateInternalError);
81 throw (FederateInternalError);
85 throw (FederateInternalError);
89 std::wstring
const & label,
90 std::wstring
const & federateName,
92 throw (FederateInternalError);
96 throw (FederateInternalError);
99 throw (FederateInternalError);
102 virtual void federationRestoreStatusResponse(
104 theFederateRestoreStatusVector)
105 throw (FederateInternalError);
109 virtual void objectInstanceNameReservationSucceeded(
110 std::wstring
const & theObjectInstanceName)
111 throw (FederateInternalError);
113 virtual void objectInstanceNameReservationFailed(
114 std::wstring
const & theObjectInstanceName)
115 throw (FederateInternalError);
119 ObjectInstanceHandle theObject,
121 std::wstring
const & theObjectInstanceName)
122 throw (FederateInternalError);
125 ObjectInstanceHandle theObject,
127 std::wstring
const & theObjectInstanceName,
129 throw (FederateInternalError);
134 ObjectInstanceHandle theObject,
140 throw (FederateInternalError);
143 ObjectInstanceHandle theObject,
151 throw (FederateInternalError);
154 ObjectInstanceHandle theObject,
161 MessageRetractionHandle theHandle,
163 throw (FederateInternalError);
174 throw (FederateInternalError);
185 throw (FederateInternalError);
195 MessageRetractionHandle theHandle,
197 throw (FederateInternalError);
202 ObjectInstanceHandle theObject,
206 throw (FederateInternalError);
209 ObjectInstanceHandle theObject,
215 throw (FederateInternalError);
218 ObjectInstanceHandle theObject,
223 MessageRetractionHandle theHandle,
225 throw (FederateInternalError);
227 virtual void reportAttributeTransportationType (
228 ObjectInstanceHandle theObject,
231 throw (FederateInternalError);
233 virtual void confirmAttributeTransportationTypeChange (
234 ObjectInstanceHandle theObject,
238 FederateInternalError);
240 virtual void confirmInteractionTransportationTypeChange (
244 FederateInternalError);
247 virtual void reportInteractionTransportationType (
252 FederateInternalError);
254 virtual void multipleObjectInstanceNameReservationSucceeded (
255 std::set<std::wstring>
const & theObjectInstanceNames)
257 FederateInternalError);
259 virtual void multipleObjectInstanceNameReservationFailed (
260 std::set<std::wstring>
const & theObjectInstanceNames)
262 FederateInternalError);