///<summary> Writes this HLAjoinFederationExecutionMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); writer.WriteHLAunicodeString(((HLAjoinFederationExecutionMessage)obj).FederationExecutionName); writer.WriteHLAunicodeString(((HLAjoinFederationExecutionMessage)obj).FederateType); writer.WriteHLAinteger64BE(((HLAjoinFederationExecutionMessage)obj).FederateHandle); } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this PeerAdvertisementInteractionMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { writer.WriteHLAunicodeString(((PeerAdvertisementInteractionMessage)obj).PeerName); writer.WriteHLAunicodeString(((PeerAdvertisementInteractionMessage)obj).PeerDescription); writer.WriteHLAinteger32BE((((PeerAdvertisementInteractionMessage)obj).PeerChannels).Count); for (int i = 0; i < (((PeerAdvertisementInteractionMessage)obj).PeerChannels).Count; i++) { writer.WriteHLAunicodeString((((PeerAdvertisementInteractionMessage)obj).PeerChannels)[i]); } } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> /// Writes this Boid.Color to the specified stream. ///</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="Color"> the property to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object Color) { try { writer.WriteHLAunicodeString((String)Color); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this CommunicationMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="System.IO.IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { //base.Serialize(writer, obj); writer.WriteHLAunicodeString(((CommunicationMessage)obj).Message); } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this HLAcreateFederationExecutionMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); writer.WriteHLAunicodeString(((HLAcreateFederationExecutionMessage)obj).FederationExecutionName); writer.WriteHLAopaqueData(((HLAcreateFederationExecutionMessage)obj).FederationDescriptionDocument); } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }
///<summary> Writes this HLAregisterObjectInstanceMessage to the specified stream.</summary> ///<param name="writer"> the output stream to write to</param> ///<param name="obj"> the object to serialize</param> ///<exception cref="IOException"> if an error occurs</exception> public override void Serialize(HlaEncodingWriter writer, object obj) { try { base.Serialize(writer, obj); writer.WriteHLAunicodeString(((HLAregisterObjectInstanceMessage)obj).ObjectName); writer.WriteHLAinteger64BE(((HLAregisterObjectInstanceMessage)obj).ObjectInstanceHandle); writer.WriteHLAinteger64BE(((HLAregisterObjectInstanceMessage)obj).ObjectClassHandle); } catch (IOException ioe) { throw new RTIinternalError(ioe.ToString()); } }