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

API Documentation


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

FastCharStream.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      : 2005/12/16
00013 //
00014 #ifndef _FASTCHARSTREAM_H
00015 #define _FASTCHARSTREAM_H
00016 
00017 #include "StringReader.h"
00018 
00019 namespace firtex
00020 {
00021         namespace utility
00022         {
00023                 class CStringReader;
00024                 class CFastCharStream
00025                 {
00026                         int m_col;
00027                         int m_line;
00028                                                 
00029                 public:                 
00030                         CFastCharStream(CStringReader* reader);
00031                         ~CFastCharStream();
00032                 public:
00033                         char    getNext();
00034                         void    unget();                        
00035                         char    peek();         
00036                         bool    isEos(){return input->isEof();}         
00037                         int             column(){return m_col;}                 
00038                         int             line(){return m_line;}
00039                         
00040                         CStringReader* input;
00041                 };
00042         }
00043 }
00044 
00045 #endif

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