RocketEBookParser.h Source File documentation

RocketEBookParser.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 ROCKETEBOOKPARSER_H_INCLUDED
11 #define ROCKETEBOOKPARSER_H_INCLUDED
12
13 #include <libe-book/libe-book.h>
14
15 #include "RocketEBookHeader.h"
16
17 namespace libebook
18 {
19
20 class RocketEBookParser
21 {
22 // disable copying
23 RocketEBookParser(const RocketEBookParser &other);
24 RocketEBookParser &operator=(const RocketEBookParser &other);
25
26 public:
27 explicit RocketEBookParser(const RVNGInputStreamPtr_t &input, librevenge::RVNGTextInterface *document = 0);
28
29 void parse();
30
31 private:
32 const RVNGInputStreamPtr_t m_input;
33 librevenge::RVNGTextInterface *m_document;
34 RocketEBookHeader m_header;
35 };
36
37 }
38
39 #endif // ROCKETEBOOKPARSER_H_INCLUDED
40
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
EBOOKHTMLParser.h
libebook::EBOOKHTMLToken::html
Definition: EBOOKHTMLToken.h:85
RocketEBookStream.h
libebook::RocketEBookToken::REVISION
Definition: RocketEBookToken.h:40
RocketEBookToken.h
libebook::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
libebook::RocketEBookHeader::getInfoID
unsigned getInfoID() const
Definition: RocketEBookHeader.cpp:60
path
string path
Definition: EBOOKOPFParser.cpp:49
libebook::EBOOKHTMLToken::body
Definition: EBOOKHTMLToken.h:48
libebook::RocketEBookParser::m_input
const RVNGInputStreamPtr_t m_input
Definition: RocketEBookParser.h:32
libebook::EBOOKHTMLToken::get
Definition: EBOOKHTMLToken.h:283
libebook
Definition: BBeBCollector.cpp:18
libebook::RocketEBookParser
Definition: RocketEBookParser.h:20
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
libebook::RocketEBookToken::TITLE_LANGUAGE
Definition: RocketEBookToken.h:43
libebook::RocketEBookParser::operator=
RocketEBookParser & operator=(const RocketEBookParser &other)
m_input
librevenge::RVNGInputStream * m_input
Definition: PeanutPressParser.cpp:262
libebook::RocketEBookParser::RocketEBookParser
RocketEBookParser(const RocketEBookParser &other)
libebook::RocketEBookToken::COMMENT
Definition: RocketEBookToken.h:29
libebook::PackageError
Definition: libebook_utils.h:115
stream
RVNGInputStreamPtr_t stream
Definition: HTMLHelpStream.cpp:79
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
metadata
RVNGPropertyList metadata
Definition: EBOOKOPFParser.cpp:63
libebook::RocketEBookHeader
Definition: RocketEBookHeader.h:21
libebook::EBOOKHTMLToken::input
Definition: EBOOKHTMLToken.h:89
libebook::RocketEBookToken::AUTHOR
Definition: RocketEBookToken.h:27
libebook::RocketEBookToken::BODY
Definition: RocketEBookToken.h:28
libebook::readU8
uint8_t readU8(librevenge::RVNGInputStream *input, bool)
Definition: libebook_utils.cpp:45
parser
HUBBUBParserPtr_t parser
Definition: EBOOKHTMLParser.cpp:170
libebook::RocketEBookParser::parse
void parse()
Definition: RocketEBookParser.cpp:152
libebook::getRocketEBookTokenId
int getRocketEBookTokenId(const char *const name, const char *const ns)
Definition: RocketEBookToken.cpp:27
libebook::RocketEBookParser::m_header
RocketEBookHeader m_header
Definition: RocketEBookParser.h:34
RocketEBookHeader.h
m_package
const RVNGInputStreamPtr_t m_package
Definition: RocketEBookParser.cpp:105
m_document
librevenge::RVNGTextInterface *const m_document
Definition: FictionBook2Parser.cpp:55
libebook::EBOOKOPFToken::package
Definition: EBOOKOPFToken.h:63
RocketEBookParser.h
libebook::RocketEBookStream
Definition: RocketEBookStream.h:22
libebook::RocketEBookToken::TITLE
Definition: RocketEBookToken.h:42
m_header
int m_header
Definition: EBOOKOutputElements.cpp:476
libebook::RocketEBookParser::m_document
librevenge::RVNGTextInterface * m_document
Definition: RocketEBookParser.h:33