ZVRParser.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 ZVRPARSER_H_INCLUDED
11#define ZVRPARSER_H_INCLUDED
12
13#include <string>
14
15namespace libebook
16{
17
19{
20 // -Weffc++
21 ZVRParser(const ZVRParser &other);
23
24public:
25
26 ZVRParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document = nullptr);
27
28 bool parse();
29
30private:
32
33 std::shared_ptr<librevenge::RVNGInputStream> uncompress();
34
35 void writeText(std::shared_ptr<librevenge::RVNGInputStream> input);
36
37private:
38 librevenge::RVNGInputStream *const m_input;
39 librevenge::RVNGTextInterface *const m_document;
40
41 std::string m_replacementTable[256];
42};
43
44} // namespace libebook
45
46#endif // ZVRPARSER_H_INCLUDED
47
48/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
XMLTreeNodePtr_t document
Definition EBOOKHTMLParser.cpp:163
Definition ZVRParser.h:19
std::string m_replacementTable[256]
Definition ZVRParser.h:41
librevenge::RVNGInputStream *const m_input
Definition ZVRParser.h:38
ZVRParser(const ZVRParser &other)
std::shared_ptr< librevenge::RVNGInputStream > uncompress()
Definition ZVRParser.cpp:88
void writeText(std::shared_ptr< librevenge::RVNGInputStream > input)
Definition ZVRParser.cpp:102
void readReplacementTable()
Definition ZVRParser.cpp:62
ZVRParser & operator=(const ZVRParser &other)
librevenge::RVNGTextInterface *const m_document
Definition ZVRParser.h:39
bool parse()
Definition ZVRParser.cpp:45
@ input
Definition EBOOKHTMLToken.h:89
Definition BBeBCollector.cpp:19

Generated for libe-book by doxygen 1.12.0