示例#1
0
文件: Database.cs 项目: wushian/Nxdb
 private void Add(string path, NodeCache nodeCache)
 {
     if (_data == null)
     {
         throw new ObjectDisposedException("Database");
     }
     if (nodeCache != null)
     {
         FDoc doc = new FDoc(nodeCache, path.Token());
         Updates.Do(new DBAdd(Data, null, doc, path, Context));
     }
 }
示例#2
0
        //////////////////////////////////////////////////////////////////////////
        // Documentation
        //////////////////////////////////////////////////////////////////////////

        public override string doc()
        {
            if (!m_docLoaded)
            {
                try
                {
                    Stream input = m_pod.fpod.m_store.read("doc/" + m_name + ".apidoc");
                    if (input != null)
                    {
                        try { FDoc.read(input, this); } finally { input.Close(); }
                    }
                }
                catch (Exception e)
                {
                    Err.dumpStack(e);
                }
                m_docLoaded = true;
            }
            return(m_doc);
        }