///<summary> Reads this HLAjoinFederationExecutionMessage from the specified stream.</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the object</returns> ///<exception cref="IOException"> if an error occurs</exception> public override object Deserialize(HlaEncodingReader reader, ref object msg) { HLAjoinFederationExecutionMessage decodedValue; if (!(msg is HLAjoinFederationExecutionMessage)) { decodedValue = new HLAjoinFederationExecutionMessage(); BaseInteractionMessage baseMsg = msg as BaseInteractionMessage; decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle; decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle; decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag; } else { decodedValue = msg as HLAjoinFederationExecutionMessage; } object tmp = decodedValue; decodedValue = base.Deserialize(reader, ref tmp) as HLAjoinFederationExecutionMessage; try { decodedValue.FederationExecutionName = reader.ReadHLAunicodeString(); decodedValue.FederateType = reader.ReadHLAunicodeString(); decodedValue.FederateHandle = reader.ReadHLAinteger64BE(); } catch (System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } return(decodedValue); }
///<summary> Reads this HLAjoinFederationExecutionMessage from the specified stream.</summary> ///<param name="reader"> the input stream to read from</param> ///<returns> the object</returns> ///<exception cref="IOException"> if an error occurs</exception> public override object Deserialize(HlaEncodingReader reader, ref object msg) { HLAjoinFederationExecutionMessage decodedValue; if (!(msg is HLAjoinFederationExecutionMessage)) { decodedValue = new HLAjoinFederationExecutionMessage(); BaseInteractionMessage baseMsg = msg as BaseInteractionMessage; decodedValue.InteractionClassHandle = baseMsg.InteractionClassHandle; decodedValue.FederationExecutionHandle = baseMsg.FederationExecutionHandle; decodedValue.UserSuppliedTag = baseMsg.UserSuppliedTag; } else { decodedValue = msg as HLAjoinFederationExecutionMessage; } object tmp = decodedValue; decodedValue = base.Deserialize(reader, ref tmp) as HLAjoinFederationExecutionMessage; try { decodedValue.FederationExecutionName = reader.ReadHLAunicodeString(); decodedValue.FederateType = reader.ReadHLAunicodeString(); decodedValue.FederateHandle = reader.ReadHLAinteger64BE(); } catch(System.IO.IOException ioe) { throw new RTIinternalError(ioe.ToString()); } return decodedValue; }