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);
RestoreFailureReason
Definition: Enums.h:43
std::map< ObjectClassHandle, std::wstring > objectClassMap
Definition: rtiSimpleFedAmb1516.h:45
A convenience header provided for developers that would like to include everything all at once...
Definition: rtiSimpleFedAmb13.h:37
virtual void initiateFederateRestore(const char *label, FederateHandle handle)=0
4.19
virtual void federationNotRestored()=0
SaveFailureReason
Definition: Enums.h:62
SaveFailureReason mySaveFailureReason
Definition: rtiSimpleFedAmb1516.h:30
RestoreFailureReason myRestoreFailureReason
Definition: rtiSimpleFedAmb1516.h:42
virtual void receiveInteraction(InteractionClassHandle theInteraction, const ParameterHandleValuePairSet &theParameters, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.7
virtual void removeObjectInstance(ObjectHandle theObject, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.9
std::map< InteractionClassHandle, std::wstring > interactionClassMap
Definition: rtiSimpleFedAmb1516.h:47
std::wstring mySaveLabel
Definition: rtiSimpleFedAmb1516.h:29
std::wstring myRestoreLabel
Definition: rtiSimpleFedAmb1516.h:40
virtual void initiateFederateSave(const char *label)=0
4.12
std::set< RegionHandle > RegionHandleSet
Definition: Typedefs.h:39
virtual void requestFederationRestoreFailed(const char *label, const char *reason)=0
supplied C4
virtual void federationNotSaved()=0
virtual void discoverObjectInstance(ObjectHandle theObject, ObjectClassHandle theObjectClass, const char *theObjectName)=0
! Object Management Services //!
virtual void requestFederationRestoreSucceeded(const char *label)=0
4.17
virtual void reflectAttributeValues(ObjectHandle theObject, const AttributeHandleValuePairSet &theAttributes, const FedTime &theTime, const char *theTag, EventRetractionHandle theHandle)=0
6.5
std::vector< FederateHandleSaveStatusPair > FederateHandleSaveStatusPairVector
Definition: Typedefs.h:65
OrderType
Definition: Enums.h:27
Definition: rtiSimpleFedAmb13.h:13
bool myReceivedFederationRestoreStatusResponse
Definition: rtiSimpleFedAmb1516.h:39
virtual void federationRestored()=0
4.21
std::map< AttributeHandle, VariableLengthData > AttributeHandleValueMap
Definition: Typedefs.h:44
std::map< ObjectInstanceHandle, std::wstring > objectInstanceMap
Definition: rtiSimpleFedAmb1516.h:46
bool myNameReservationSucceeded
Definition: rtiSimpleFedAmb1516.h:24
FederateHandleSaveStatusPairVector myFederateHandleSaveStatus
Definition: rtiSimpleFedAmb1516.h:31
virtual void federationRestoreBegun()=0
4.18
virtual void federationSaved()=0
4.15
TransportationType
Definition: Enums.h:97
This file provides an example derivation of the rti1516e::FederateAmbassador with NULL actions for ea...
bool myNameReservationReturned
Definition: rtiSimpleFedAmb1516.h:23
FederateHandleRestoreStatusPairVector myFederateHandleRestoreStatus
Definition: rtiSimpleFedAmb1516.h:43
bool myReceivedFederationSaveStatusResponse
Definition: rtiSimpleFedAmb1516.h:28
std::map< ParameterHandle, VariableLengthData > ParameterHandleValueMap
Definition: Typedefs.h:49