GeometryGym.Ifc.IfcObject.SetXML C# (CSharp) Méthode

SetXML() private méthode

private SetXML ( XmlElement xml, BaseClassIfc host, HashSet processed ) : void
xml XmlElement
host BaseClassIfc
processed HashSet
Résultat void
        internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)
        {
            base.SetXML(xml, host, processed);
            setAttribute(xml, "ObjectType", ObjectType);
            if (mIsTypedBy != null)
                xml.AppendChild(mIsTypedBy.GetXML(xml.OwnerDocument, "IsTypedBy", this, processed));
            if (mIsDefinedBy.Count > 0)
            {
                XmlElement element = xml.OwnerDocument.CreateElement("IsDefinedBy");
                xml.AppendChild(element);
                foreach (IfcRelDefinesByProperties rd in IsDefinedBy)
                    element.AppendChild(rd.GetXML(xml.OwnerDocument, "", this, processed));
            }
        }