FirteX-高性能全文索引和检索平台API Documentation |
00001 // 00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 00003 // All rights reserved. 00004 // This file is part of FirteX (www.firtex.org) 00005 // 00006 // Use of the FirteX is subject to the terms of the software license set forth in 00007 // the LICENSE file included with this software, and also available at 00008 // http://www.firtex.org/license.html 00009 // 00010 // Author : 郭瑞杰(GuoRuijie) 00011 // Email : ruijieguo@software.ict.ac.cn,ruijieguo@gmail.com 00012 // Created : 2006/7/3 00013 // 00014 #ifndef _DIRCOLLECTION_H 00015 #define _DIRCOLLECTION_H 00016 00017 #include "Collection.h" 00018 00019 #include <string> 00020 using namespace std; 00021 00022 namespace firtex 00023 { 00024 namespace collection 00025 { 00026 class CDirCollection : public CCollection 00027 { 00028 public: 00029 static const tstring identifier; 00030 public: 00036 CDirCollection(const tchar* dir,CIndexWriter* pIndexWriter); 00037 virtual ~CDirCollection(void); 00038 00039 public: 00040 bool addFile(const tchar* filename); 00041 protected: 00042 bool scanInternal(); 00043 protected: 00044 tstring m_sDirectory; 00045 }; 00046 } 00047 } 00048 00049 00050 #endif
http://www.firtex.org http://www.sourceforge.net/projects/firtex