EPubParser.h Source File documentation

EPubParser.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 EPUBPARSER_H_INCLUDED
11 #define EPUBPARSER_H_INCLUDED
12
13 #include <libe-book/libe-book.h>
14
15 namespace libebook
16 {
17
18 class EPubParser
19 {
20 // disable copying
21 EPubParser(const EPubParser &other);
22 EPubParser &operator=(const EPubParser &other);
23
24 public:
25 EPubParser(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 // EPUBPARSER_H_INCLUDED
37
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EBOOKOPFToken::media_type
@ media_type
Definition: EBOOKOPFToken.h:89
EPubParser.h
libebook::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
libebook::EBOOKOPFParser::TYPE_EPub
@ TYPE_EPub
Definition: EBOOKOPFParser.h:30
libebook::EBOOKDummyDeleter
Definition: libebook_utils.h:57
EBOOKSAXParser.h
libebook::EPubToken::NS_container
@ NS_container
Definition: EPubToken.h:54
libebook
Definition: BBeBCollector.cpp:19
m_elementStack
std::stack< int > m_elementStack
Definition: EPubParser.cpp:53
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
libebook::EBOOKOPFParser
Definition: EBOOKOPFParser.h:21
m_versionOk
bool m_versionOk
Definition: EPubParser.cpp:54
libebook_utils.h
libebook::EPubParser
Definition: EPubParser.h:19
m_opfName
string & m_opfName
Definition: EPubParser.cpp:52
text
qi::rule< Iterator, AttrValue_t, qi::space_type > text
Definition: TealDocParser.cpp:232
libebook::EBOOKOPFToken::package
@ package
Definition: EBOOKOPFToken.h:63
m_input
librevenge::RVNGInputStream * m_input
Definition: PeanutPressParser.cpp:262
libebook::EBOOKOPFToken::version
@ version
Definition: EBOOKOPFToken.h:97
libebook::EPubToken::rootfiles
@ rootfiles
Definition: EPubToken.h:32
m_rootPath
string m_rootPath
Definition: EPubParser.cpp:55
libebook::EPubToken::full_path
@ full_path
Definition: EPubToken.h:39
EPubToken.h
libebook::EPubToken::MIME_opf
@ MIME_opf
Definition: EPubToken.h:45
m_found
bool m_found
Definition: EPubParser.cpp:57
libebook::EPubToken::rootfile
@ rootfile
Definition: EPubToken.h:33
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
EBOOKOPFParser.h
libebook::getEPubTokenId
int getEPubTokenId(const char *const name, const char *const ns)
Definition: EPubToken.cpp:27
libebook::EPubParser::operator=
EPubParser & operator=(const EPubParser &other)
libebook::EPubParser::m_document
librevenge::RVNGTextInterface *const m_document
Definition: EPubParser.h:31
libebook::EBOOKHTMLToken::input
@ input
Definition: EBOOKHTMLToken.h:89
parser
HUBBUBParserPtr_t parser
Definition: EBOOKHTMLParser.cpp:170
container
MSPackFile container
Definition: HTMLHelpStream.cpp:93
name
string name
Definition: HTMLHelpStream.cpp:80
libebook::EBOOKOPFToken::opf
@ opf
Definition: EBOOKOPFToken.h:28
libebook::EPubParser::parse
void parse()
Definition: EPubParser.cpp:192
EBOOK_DEBUG_MSG
#define EBOOK_DEBUG_MSG(M)
Definition: libebook_utils.h:44
libebook::EPubParser::m_input
librevenge::RVNGInputStream *const m_input
Definition: EPubParser.h:30
libebook::EPubParser::EPubParser
EPubParser(const EPubParser &other)
libebook::EPubToken::_1_0
@ _1_0
Definition: EPubToken.h:43
m_document
librevenge::RVNGTextInterface *const m_document
Definition: FictionBook2Parser.cpp:55
m_rootOk
bool m_rootOk
Definition: EPubParser.cpp:56