Beispiel #1
0
        /// <summary>
        /// Parses the Get Request from the stream
        /// </summary>
        /// <param name="dataStream">The stream to parse the data 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);

            // Read the length
            int Length = DataReader.ReadLength();

            // Read the descriptors
            for (int iIndex = 0; iIndex < Length; iIndex++)
            {
                CosemAttributeDescriptorWithSelection CurrentDescriptor = new CosemAttributeDescriptorWithSelection();
                CurrentDescriptor.Parse(dataStream);

                m_AttributeDescriptorList.Add(CurrentDescriptor);
            }
        }
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);
            }
        }