GeometryGym.Ifc.IfcMaterialLayerSetUsage.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, "ForLayerSet") == 0)
                    ForLayerSet = mDatabase.ParseXml<IfcMaterialLayerSet>(child as XmlElement);
            }
            if (xml.HasAttribute("LayerSetDirection"))
                Enum.TryParse<IfcLayerSetDirectionEnum>(xml.Attributes["LayerSetDirection"].Value, true, out mLayerSetDirection);
            if (xml.HasAttribute("DirectionSense"))
                Enum.TryParse<IfcDirectionSenseEnum>(xml.Attributes["DirectionSense"].Value, true, out mDirectionSense);
            if (xml.HasAttribute("OffsetFromReferenceLine"))
                mOffsetFromReferenceLine = double.Parse(xml.Attributes["OffsetFromReferenceLine"].Value);
            if (xml.HasAttribute("ReferenceExtent"))
                mReferenceExtent = double.Parse(xml.Attributes["ReferenceExtent"].Value);
        }
IfcMaterialLayerSetUsage