Beispiel #1
0
        /// <summary>
        /// Parses the Get Response from the stream
        /// </summary>
        /// <param name="dataStream">The data stream to parse from</param>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ ---------------------------------------
        //  02/04/12 RCG 2.70.63 N/A    Created

        public override void Parse(Stream dataStream)
        {
            base.Parse(dataStream);

            m_Result = new GetDataResult();
            m_Result.Parse(dataStream);
        }
Beispiel #2
0
        /// <summary>
        /// Parses the Get Response from the stream
        /// </summary>
        /// <param name="dataStream">The stream to parse from</param>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ ---------------------------------------
        //  02/04/12 RCG 2.70.63 N/A    Created

        public override void Parse(Stream dataStream)
        {
            DLMSBinaryReader DataReader = new DLMSBinaryReader(dataStream);

            base.Parse(dataStream);

            // Get the length of the list
            int Length = DataReader.ReadLength();

            m_Result = new List <GetDataResult>();

            for (int iIndex = 0; iIndex < Length; iIndex++)
            {
                GetDataResult NewResult = new GetDataResult();
                NewResult.Parse(dataStream);

                m_Result.Add(NewResult);
            }
        }