FirteX-高性能全文索引和检索平台

API Documentation


首页 | 名字空间列表 | 类继承关系 | 组合类型列表 | $(BL\录(B | 文件列表 | 名字空间成员 | 组合类型成员 | 文件成员

FileListCollection.h

浏览该文件的文档。
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/12/9
00013 //
00014 #ifndef _FILELISTCOLLECTION_H
00015 #define _FILELISTCOLLECTION_H
00016 
00017 #include "../utility/StdHeader.h"
00018 #include "Collection.h"
00019 #include <string>
00020 #include <fstream>
00021 using namespace std;
00022 
00023 namespace firtex
00024 {
00025         namespace collection
00026         {
00027                 class CFileListCollection :     public CCollection
00028                 {
00029                 public:
00030                         static const tstring identifier;
00031                 public:
00037                         CFileListCollection(const tchar* filelist,CIndexWriter* pIndexWriter);
00038                         virtual ~CFileListCollection(void);
00039                 
00040                         bool            addFile(const tchar* filename);
00041                         void            close();
00042                 protected:                      
00043                         bool            scanInternal();
00044                 protected:                      
00045                         tstring         m_sListFile;
00046 #ifdef _UNICODE
00047                         wifstream       m_streamList;
00048 #else
00049                         ifstream        m_streamList;
00050 #endif
00051                 };
00052         }
00053 }
00054 
00055 
00056 
00057 #endif
00058 

http://www.firtex.org http://www.sourceforge.net/projects/firtex