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

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml System.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, "Orientation") == 0)
                    Orientation = mDatabase.ParseXml<IfcDirection>(child as XmlElement);
            }
            if (xml.HasAttribute("Magnitude"))
                mMagnitude = double.Parse(xml.Attributes["Magnitude"].Value);
        }