private void _parse() { _present = m_io.ReadU1(); if (Present != 0) { _value = new SelectiveAccessDescriptor(m_io, this, m_root); } }
/// <summary> /// Parses the data 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) { // Parse the Invoke ID and Priority bit first base.Parse(dataStream); // Parse the Get Request Normal specific items DLMSBinaryReader DataReader = new DLMSBinaryReader(dataStream); m_AttributeDescriptor = new CosemAttributeDescriptor(); m_AttributeDescriptor.Parse(dataStream); // The Access Selection is optional so we need to read the usage flag if (DataReader.ReadUsageFlag() == true) { m_AccessSelection = new SelectiveAccessDescriptor(); m_AccessSelection.Parse(dataStream); } else { m_AccessSelection = null; } }