Exemple #1
0
 public static void Dispose()
 {
     m_XMLDoc      = null;
     m_GraphConfig = null;
     m_HeadConfig  = null;
     if (m_pMetaTables != null)
     {
         m_pMetaTables.Clear();
     }
 }
Exemple #2
0
        private static bool InitialConfig(XmlDocument pDoc, EnumDBStandard pEnumDBStandard)
        {
            XmlNode pHeadNode = null;///获取头文件集合节点

            for (int i = 0; i < pDoc.DocumentElement.ChildNodes.Count; i++)
            {
                XmlNode pNode = pDoc.DocumentElement.ChildNodes[i];
                if (pNode.Name == "Description")
                {
                    pHeadNode = pNode;
                    break;
                }
            }
            if (pHeadNode != null)
            {
                foreach (XmlNode pChildNode in pHeadNode.ChildNodes)
                {
                    ///获取头文件配置信息
                    if (pChildNode.Name == "HEAD")
                    {
                        m_HeadConfig = new HeadConfig(pEnumDBStandard);
                        if (!m_HeadConfig.Initial(pChildNode))
                        {
                            return(false);
                        }
                    }
                    ///获取图形配置信息
                    if (pChildNode.Name == "GRAPH")
                    {
                        m_GraphConfig = new GraphConfig();
                        if (!m_GraphConfig.Initial(pChildNode))
                        {
                            return(false);
                        }
                    }
                }
            }
            return(true);
        }
Exemple #3
0
 private static bool InitialConfig(XmlDocument pDoc,EnumDBStandard pEnumDBStandard)
 {
     XmlNode pHeadNode = null;///获取头文件集合节点
     for (int i = 0; i < pDoc.DocumentElement.ChildNodes.Count; i++)
     {
         XmlNode pNode = pDoc.DocumentElement.ChildNodes[i];
         if (pNode.Name == "Description")
         {
             pHeadNode = pNode;
             break;
         }
     }
     if (pHeadNode != null)
     {
         foreach (XmlNode pChildNode in pHeadNode.ChildNodes)
         {
             ///获取头文件配置信息
             if (pChildNode.Name == "HEAD")
             {
                 m_HeadConfig = new HeadConfig(pEnumDBStandard);
                 if (!m_HeadConfig.Initial(pChildNode))
                     return false;
             }
             ///获取图形配置信息
             if (pChildNode.Name == "GRAPH")
             {
                 m_GraphConfig = new GraphConfig();
                 if (!m_GraphConfig.Initial(pChildNode))
                     return false;
             }
         }
     }
     return true;
 }
Exemple #4
0
 public static void Dispose()
 {
     m_XMLDoc = null;
      m_GraphConfig = null;
      m_HeadConfig = null;
     if(m_pMetaTables!=null)
      m_pMetaTables.Clear();
 }