9 #ifndef MyFederateAmbassador_H_
10 #define MyFederateAmbassador_H_
13 #pragma warning(disable: 4251)
14 #pragma warning(disable: 4786)
15 #pragma warning(disable: 4290)
18 #include <RTI/Enums.h>
19 #include <RTI/Typedefs.h>
20 #include <RTI/RTI1516.h>
21 #include <RTI/NullFederateAmbassador.h>
27 using namespace rti1516e;
41 bool myNameReservationReturned;
42 bool myNameReservationSucceeded;
43 std::map<ObjectClassHandle, std::wstring> objectClassMap;
44 std::map<ObjectInstanceHandle, std::wstring> objectInstanceMap;
45 std::map<InteractionClassHandle,std::wstring> interactionClassMap;
46 std::map<ObjectInstanceHandle, AttributeHandleSet*> updateRequestMap;
55 std::set<std::string> ourAttrs;
58 std::set<std::string> ourParms;
70 AttributeHandleValueMap* attrValues;
71 ParameterHandleValueMap* paramValues;
76 int otherFederatesReady;
78 bool registerSucceeded;
79 bool announceSyncReceived;
80 bool federationIsSynchronized;
95 objectInstanceNameReservationSucceeded(std::wstring const &
96 theObjectInstanceName)
97 throw (FederateInternalError);
101 objectInstanceNameReservationFailed(std::wstring const &
102 theObjectInstanceName)
103 throw (FederateInternalError);
107 ObjectInstanceHandle theObject,
109 std::wstring const & theObjectInstanceName)
110 throw (FederateInternalError);
113 ObjectInstanceHandle theObject,
115 std::wstring const & theObjectInstanceName,
118 FederateInternalError);
122 ObjectInstanceHandle theObject,
123 AttributeHandleValueMap const & theAttributeValues,
124 VariableLengthData const & theUserSuppliedTag,
126 TransportationType theType,
127 SupplementalReflectInfo theReflectInfo)
129 FederateInternalError);
132 ObjectInstanceHandle theObject,
133 AttributeHandleValueMap const & theAttributeValues,
134 VariableLengthData const & theUserSuppliedTag,
136 TransportationType theType,
137 LogicalTime const & theTime,
139 SupplementalReflectInfo theReflectInfo)
141 FederateInternalError);
144 ObjectInstanceHandle theObject,
145 AttributeHandleValueMap const & theAttributeValues,
146 VariableLengthData const & theUserSuppliedTag,
148 TransportationType theType,
149 LogicalTime const & theTime,
151 MessageRetractionHandle theHandle,
152 SupplementalReflectInfo theReflectInfo)
154 FederateInternalError);
159 ParameterHandleValueMap const & theParameterValues,
160 VariableLengthData const & theUserSuppliedTag,
162 TransportationType theType,
163 SupplementalReceiveInfo theReceiveInfo)
165 FederateInternalError);
169 ParameterHandleValueMap const & theParameterValues,
170 VariableLengthData const & theUserSuppliedTag,
172 TransportationType theType,
173 LogicalTime const & theTime,
175 SupplementalReceiveInfo theReceiveInfo)
177 FederateInternalError);
181 ParameterHandleValueMap const & theParameterValues,
182 VariableLengthData const & theUserSuppliedTag,
184 TransportationType theType,
185 LogicalTime const & theTime,
187 MessageRetractionHandle theHandle,
188 SupplementalReceiveInfo theReceiveInfo)
190 FederateInternalError);
194 ObjectInstanceHandle theObject,
195 VariableLengthData const & theUserSuppliedTag,
197 SupplementalRemoveInfo theRemoveInfo)
199 FederateInternalError);
201 ObjectInstanceHandle theObject,
202 VariableLengthData const & theUserSuppliedTag,
204 LogicalTime const & theTime,
206 SupplementalRemoveInfo theRemoveInfo)
208 FederateInternalError);
211 ObjectInstanceHandle theObject,
212 VariableLengthData const & theUserSuppliedTag,
214 LogicalTime const & theTime,
216 MessageRetractionHandle theHandle,
217 SupplementalRemoveInfo theRemoveInfo)
219 FederateInternalError);
225 VariableLengthData const & theUserSuppliedTag)
227 FederateInternalError);
233 FederateInternalError);
240 FederateInternalError);
246 FederateInternalError);
251 throw (FederateInternalError);
257 throw (FederateInternalError);
261 SynchronizationPointFailureReason reason)
262 throw (FederateInternalError);
267 VariableLengthData const & theUserSuppliedTag)
268 throw (FederateInternalError);
271 std::wstring const & label,
274 FederateInternalError);