コード例 #1
0
ファイル: MvdXMLDocument.cs プロジェクト: xBimTeam/XbimMvdXML
 internal void AddConcept(MvdConcept mvdConcept)
 {
     if (Concepts.ContainsKey(mvdConcept.uuid))
     {
         return;
     }
     Concepts.Add(mvdConcept.uuid, mvdConcept);
 }
コード例 #2
0
ファイル: MvdConceptRoot.cs プロジェクト: xBimTeam/XbimMvdXML
        public MvdConceptRoot(MvdXMLDocument mvdXMLDocument, XPathNavigator xPathNavigator)
            : base(mvdXMLDocument, xPathNavigator)
        {
            applicableRootEntity = xPathNavigator.GetAttribute("applicableRootEntity", "");
            XPathNavigator childNav = xPathNavigator.Clone();

            childNav.MoveToChild("Concepts", mvdXMLDocument.fileNameSpace);
            var ret = childNav.MoveToChild("Concept", mvdXMLDocument.fileNameSpace);

            Concepts = new List <MvdConcept>();
            while (ret)
            {
                var c = new MvdConcept(mvdXMLDocument, childNav);
                c.ConceptRoot = this;
                Concepts.Add(c);
                ret = childNav.MoveToNext("Concept", mvdXMLDocument.fileNameSpace);
            }
        }