GeometryGym.Ifc.IfcObjective.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);
            if (mBenchmarkValues.Count > 0)
            {
                XmlElement element = xml.OwnerDocument.CreateElement("BenchmarkValues");
                xml.AppendChild(element);
                foreach (IfcConstraint constraint in BenchmarkValues)
                    element.AppendChild(constraint.GetXML(xml.OwnerDocument, "", this, processed));
                if (mLogicalAggregator != IfcLogicalOperatorEnum.NONE)
                    xml.SetAttribute("LogicalAggregator", mLogicalAggregator.ToString().ToLower());
                if (mObjectiveQualifier != IfcObjectiveEnum.NOTDEFINED)
                    xml.SetAttribute("ObjectiveQualifier", mObjectiveQualifier.ToString().ToLower());
                setAttribute(xml, "UserDefinedQualifier", UserDefinedQualifier);
            }
        }