GeometryGym.Ifc.IfcSpace.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);
            if (xml.HasAttribute("PredefinedType"))
                Enum.TryParse<IfcSpaceTypeEnum>(xml.Attributes["PredefinedType"].Value,true, out mPredefinedType);
            else if (xml.HasAttribute("InteriorOrExteriorSpace"))
                Enum.TryParse<IfcSpaceTypeEnum>(xml.Attributes["InteriorOrExteriorSpace"].Value,true, out mPredefinedType);
            if (xml.HasAttribute("ElevationWithFlooring"))
                ElevationWithFlooring = double.Parse(xml.Attributes["ElevationWithFlooring"].Value);
        }