IMPText.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* libe-book
00003  * Version: MPL 2.0 / LGPLv2.1+
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * Alternatively, the contents of this file may be used under the terms
00010  * of the GNU Lesser General Public License Version 2.1 or later
00011  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
00012  * applicable instead of those above.
00013  *
00014  * For further information visit http://libebook.sourceforge.net
00015  */
00016 
00017 #ifndef IMPTEXT_H_INCLUDED
00018 #define IMPTEXT_H_INCLUDED
00019 
00020 #include <string>
00021 
00022 class WPXInputStream;
00023 
00024 namespace libebook
00025 {
00026 
00027 class IMPCollector;
00028 
00029 class IMPText
00030 {
00031   // -Weffc++
00032   IMPText(const IMPText &);
00033   IMPText &operator=(const IMPText &);
00034 
00035 public:
00036   IMPText(WPXInputStream *input, IMPCollector *collector);
00037 
00038   bool parse();
00039 
00040 private:
00041   void flushText();
00042 
00043 private:
00044   WPXInputStream *const m_input;
00045   IMPCollector *const m_collector;
00046 
00047   std::string m_text;
00048   bool m_openHeader;
00049   bool m_openFooter;
00050 };
00051 
00052 }
00053 
00054 #endif // IMPTEXT_H_INCLUDED
00055 
00056 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */