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;
75 int otherFederatesReady;
77 bool registerSucceeded;
78 bool announceSyncReceived;
79 bool federationIsSynchronized;
94 objectInstanceNameReservationSucceeded(std::wstring const &
95 theObjectInstanceName)
96 throw (FederateInternalError);
100 objectInstanceNameReservationFailed(std::wstring const &
101 theObjectInstanceName)
102 throw (FederateInternalError);
106 ObjectInstanceHandle theObject,
108 std::wstring const & theObjectInstanceName)
109 throw (FederateInternalError);
112 ObjectInstanceHandle theObject,
114 std::wstring const & theObjectInstanceName,
117 FederateInternalError);
121 ObjectInstanceHandle theObject,
122 AttributeHandleValueMap const & theAttributeValues,
123 VariableLengthData const & theUserSuppliedTag,
125 TransportationType theType,
126 SupplementalReflectInfo theReflectInfo)
128 FederateInternalError);
131 ObjectInstanceHandle theObject,
132 AttributeHandleValueMap const & theAttributeValues,
133 VariableLengthData const & theUserSuppliedTag,
135 TransportationType theType,
136 LogicalTime const & theTime,
138 SupplementalReflectInfo theReflectInfo)
140 FederateInternalError);
143 ObjectInstanceHandle theObject,
144 AttributeHandleValueMap const & theAttributeValues,
145 VariableLengthData const & theUserSuppliedTag,
147 TransportationType theType,
148 LogicalTime const & theTime,
150 MessageRetractionHandle theHandle,
151 SupplementalReflectInfo theReflectInfo)
153 FederateInternalError);
158 ParameterHandleValueMap const & theParameterValues,
159 VariableLengthData const & theUserSuppliedTag,
161 TransportationType theType,
162 SupplementalReceiveInfo theReceiveInfo)
164 FederateInternalError);
168 ParameterHandleValueMap const & theParameterValues,
169 VariableLengthData const & theUserSuppliedTag,
171 TransportationType theType,
172 LogicalTime const & theTime,
174 SupplementalReceiveInfo theReceiveInfo)
176 FederateInternalError);
180 ParameterHandleValueMap const & theParameterValues,
181 VariableLengthData const & theUserSuppliedTag,
183 TransportationType theType,
184 LogicalTime const & theTime,
186 MessageRetractionHandle theHandle,
187 SupplementalReceiveInfo theReceiveInfo)
189 FederateInternalError);
193 ObjectInstanceHandle theObject,
194 VariableLengthData const & theUserSuppliedTag,
196 SupplementalRemoveInfo theRemoveInfo)
198 FederateInternalError);
200 ObjectInstanceHandle theObject,
201 VariableLengthData const & theUserSuppliedTag,
203 LogicalTime const & theTime,
205 SupplementalRemoveInfo theRemoveInfo)
207 FederateInternalError);
210 ObjectInstanceHandle theObject,
211 VariableLengthData const & theUserSuppliedTag,
213 LogicalTime const & theTime,
215 MessageRetractionHandle theHandle,
216 SupplementalRemoveInfo theRemoveInfo)
218 FederateInternalError);
224 VariableLengthData const & theUserSuppliedTag)
226 FederateInternalError);
232 FederateInternalError);
239 FederateInternalError);
245 FederateInternalError);
250 throw (FederateInternalError);
256 throw (FederateInternalError);
260 SynchronizationPointFailureReason reason)
261 throw (FederateInternalError);
266 VariableLengthData const & theUserSuppliedTag)
267 throw (FederateInternalError);
270 std::wstring const & label,
273 FederateInternalError);