FB2Parser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef FB2PARSER_H_INCLUDED
18 #define FB2PARSER_H_INCLUDED
19 
20 class WPXDocumentInterface;
21 class WPXInputStream;
22 
23 namespace libebook
24 {
25 
26 class FB2XMLParserContext;
27 
28 class FB2Parser
29 {
30  // no copying
31  FB2Parser(const FB2Parser &other);
32  FB2Parser &operator=(const FB2Parser &other);
33 
34 public:
35  explicit FB2Parser(WPXInputStream *input);
36 
37  bool parse(FB2XMLParserContext *context) const;
38  bool parse(WPXDocumentInterface *document) const;
39 
40 private:
41  WPXInputStream *const m_input;
42 };
43 
44 }
45 
46 #endif // FB2PARSER_H_INCLUDED
47 
48 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: FB2XMLParserContext.h:25
FB2Parser & operator=(const FB2Parser &other)
bool parse(FB2XMLParserContext *context) const
Definition: FB2Parser.cpp:436
Definition: FB2Parser.h:28
WPXInputStream *const m_input
Definition: FB2Parser.h:41
FB2Parser(const FB2Parser &other)

Generated for libe-book by doxygen 1.8.5