Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ZlibParserInput.h

Go to the documentation of this file.
00001 #ifndef DEBTAGS_ZLIBPARSERINPUT_H
00002 #define DEBTAGS_ZLIBPARSERINPUT_H
00003 
00008 /*
00009  * Copyright (C) 2003,2004,2005  Enrico Zini <enrico@debian.org>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with this library; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00024  */
00025 
00026 #include <tagcoll/ParserBase.h>
00027 #include <string>
00028 
00029 namespace Debtags {
00030 
00031 struct ZlibParserInputData;
00032 
00036 class ZlibParserInput : public Tagcoll::ParserInput
00037 {
00038 protected:
00039     ZlibParserInputData* _data;
00040     std::string _file;
00041     int _line;
00042     
00043 public:
00044     ZlibParserInput(const std::string& fname) throw (Tagcoll::FileException);
00045     virtual ~ZlibParserInput() throw ();
00046     
00047     virtual const std::string& fileName() const throw () { return _file; }
00048     virtual int lineNumber() const throw () { return _line; }
00049 
00050     virtual int nextChar() throw (Tagcoll::ParserInputException);
00051     virtual void pushChar(int c) throw (Tagcoll::ParserInputException);
00052 };
00053 
00054 }
00055 
00056 // vim:set ts=4 sw=4:
00057 #endif

Generated on Sat Sep 10 03:47:41 2005 for libdebtags by  doxygen 1.4.4