GeometryGym.Ifc.IfcMaterialLayer.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml XmlElement
Résultat void
        internal override void ParseXml(XmlElement xml)
        {
            base.ParseXml(xml);
            foreach (XmlNode child in xml.ChildNodes)
            {
                string name = child.Name;
                if (string.Compare(name, "Material") == 0)
                    Material = mDatabase.ParseXml<IfcMaterial>(child as XmlElement);
            }
            if (xml.HasAttribute("LayerThickness"))
                LayerThickness = double.Parse(xml.Attributes["LayerThickness"].Value);
            if (xml.HasAttribute("IsVentilated"))
                Enum.TryParse<IfcLogicalEnum>(xml.Attributes["IsVentilated"].Value, true, out mIsVentilated);
            if (xml.HasAttribute("Name"))
                Name = xml.Attributes["Name"].Value;
            if (xml.HasAttribute("Description"))
                Name = xml.Attributes["Description"].Value;
            if (xml.HasAttribute("Category"))
                Category = xml.Attributes["Category"].Value;
            if (xml.HasAttribute("Priority"))
                Priority = double.Parse(xml.Attributes["Priority"].Value);
        }