OpenEBookParser.h Source File documentation

OpenEBookParser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libe-book project.
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
10 #ifndef OPENEBOOKPARSER_H_INCLUDED
11 #define OPENEBOOKPARSER_H_INCLUDED
12
13 #include <libe-book/libe-book.h>
14
15 namespace libebook
16 {
17
18 class OpenEBookParser
19 {
20 // disable copying
21 OpenEBookParser(const OpenEBookParser &other);
22 OpenEBookParser &operator=(const OpenEBookParser &other);
23
24 public:
25 OpenEBookParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document);
26
27 void parse();
28
29 private:
30 librevenge::RVNGInputStream *const m_input;
31 librevenge::RVNGTextInterface *const m_document;
32 };
33
34 }
35
36 #endif // OPENEBOOKPARSER_H_INCLUDED
37
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::OpenEBookParser
Definition: OpenEBookParser.h:19
libebook::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
libebook::EBOOKDummyDeleter
Definition: libebook_utils.h:57
libebook::OpenEBookParser::m_input
librevenge::RVNGInputStream *const m_input
Definition: OpenEBookParser.h:30
libebook
Definition: BBeBCollector.cpp:19
libebook::EBOOKOPFParser
Definition: EBOOKOPFParser.h:21
libebook::OpenEBookParser::parse
void parse()
Definition: OpenEBookParser.cpp:25
m_input
librevenge::RVNGInputStream * m_input
Definition: PeanutPressParser.cpp:262
libebook::OpenEBookParser::operator=
OpenEBookParser & operator=(const OpenEBookParser &other)
libebook::PackageError
Definition: libebook_utils.h:116
libebook::OpenEBookParser::m_document
librevenge::RVNGTextInterface *const m_document
Definition: OpenEBookParser.h:31
libebook::EBOOKOPFParser::TYPE_OEB
@ TYPE_OEB
Definition: EBOOKOPFParser.h:29
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
EBOOKOPFParser.h
libebook::EBOOKHTMLToken::input
@ input
Definition: EBOOKHTMLToken.h:89
parser
HUBBUBParserPtr_t parser
Definition: EBOOKHTMLParser.cpp:170
libebook::EBOOKOPFParser::findOPFStream
static bool findOPFStream(const RVNGInputStreamPtr_t &package, unsigned &stream)
Definition: EBOOKOPFParser.cpp:689
OpenEBookParser.h
libebook::EBOOKOPFToken::opf
@ opf
Definition: EBOOKOPFToken.h:28
m_document
librevenge::RVNGTextInterface *const m_document
Definition: FictionBook2Parser.cpp:55
libebook::EBOOKOPFToken::package
@ package
Definition: EBOOKOPFToken.h:63
libebook::OpenEBookParser::OpenEBookParser
OpenEBookParser(const OpenEBookParser &other)