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)); } }
////////////////////////////////////////////////////////////////////////// // 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); }