} // end of unmarshal method ///<summary> ///This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. ///This will be modified in the future to provide a better display. Usage: ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); ///where pdu is an object representing a single pdu and sb is a StringBuilder. ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality ///</summary> new public void reflection(StringBuilder sb) { sb.Append("<RecordQueryReliablePdu>" + System.Environment.NewLine); base.reflection(sb); try { sb.Append("<requestID type=\"uint\">" + _requestID.ToString() + "</requestID> " + System.Environment.NewLine); sb.Append("<requiredReliabilityService type=\"byte\">" + _requiredReliabilityService.ToString() + "</requiredReliabilityService> " + System.Environment.NewLine); sb.Append("<pad1 type=\"ushort\">" + _pad1.ToString() + "</pad1> " + System.Environment.NewLine); sb.Append("<pad2 type=\"byte\">" + _pad2.ToString() + "</pad2> " + System.Environment.NewLine); sb.Append("<eventType type=\"ushort\">" + _eventType.ToString() + "</eventType> " + System.Environment.NewLine); sb.Append("<time type=\"uint\">" + _time.ToString() + "</time> " + System.Environment.NewLine); sb.Append("<recordIDs type=\"uint\">" + _recordIDs.Count.ToString() + "</recordIDs> " + System.Environment.NewLine); for (int idx = 0; idx < _recordIDs.Count; idx++) { sb.Append("<recordIDs" + idx.ToString() + " type=\"FourByteChunk\">" + System.Environment.NewLine); FourByteChunk aFourByteChunk = (FourByteChunk)_recordIDs[idx]; aFourByteChunk.reflection(sb); sb.Append("</recordIDs" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</RecordQueryReliablePdu>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of reflection method
} // end of unmarshal method ///<summary> ///This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. ///This will be modified in the future to provide a better display. Usage: ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); ///where pdu is an object representing a single pdu and sb is a StringBuilder. ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality ///</summary> new public void reflection(StringBuilder sb) { sb.Append("<GridAxisRecordRepresentation2>" + System.Environment.NewLine); base.reflection(sb); try { sb.Append("<dataValues type=\"ushort\">" + _dataValues.Count.ToString() + "</dataValues> " + System.Environment.NewLine); for (int idx = 0; idx < _dataValues.Count; idx++) { sb.Append("<dataValues" + idx.ToString() + " type=\"FourByteChunk\">" + System.Environment.NewLine); FourByteChunk aFourByteChunk = (FourByteChunk)_dataValues[idx]; aFourByteChunk.reflection(sb); sb.Append("</dataValues" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</GridAxisRecordRepresentation2>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method