SoftBookParser.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 SOFTBOOKPARSER_H_INCLUDED
11#define SOFTBOOKPARSER_H_INCLUDED
12
13#include "SoftBookCollector.h"
14#include "SoftBookHeader.h"
15
16namespace libebook
17{
18
20{
21 // disable copying
24
25public:
26 SoftBookParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document);
27
28 bool parse();
29
30private:
31 void createTextStream();
32
33 std::shared_ptr<librevenge::RVNGInputStream> getFileStream(const char *name) const;
34
35private:
37 librevenge::RVNGInputStream *const m_input;
39 std::shared_ptr<librevenge::RVNGInputStream> m_resources;
40 std::shared_ptr<librevenge::RVNGInputStream> m_text;
41};
42
43}
44
45#endif // SOFTBOOKPARSER_H_INCLUDED
46
47/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
string name
Definition: HTMLHelpStream.cpp:80
Definition: SoftBookCollector.h:23
Definition: SoftBookHeader.h:19
Definition: SoftBookParser.h:20
void createTextStream()
Definition: SoftBookParser.cpp:204
const SoftBookHeader m_header
Definition: SoftBookParser.h:36
SoftBookCollector m_collector
Definition: SoftBookParser.h:38
librevenge::RVNGInputStream *const m_input
Definition: SoftBookParser.h:37
std::shared_ptr< librevenge::RVNGInputStream > m_resources
Definition: SoftBookParser.h:39
std::shared_ptr< librevenge::RVNGInputStream > m_text
Definition: SoftBookParser.h:40
std::shared_ptr< librevenge::RVNGInputStream > getFileStream(const char *name) const
Definition: SoftBookParser.cpp:247
bool parse()
Definition: SoftBookParser.cpp:193
SoftBookParser(const SoftBookParser &)
SoftBookParser & operator=(const SoftBookParser &)
@ input
Definition: EBOOKHTMLToken.h:89
Definition: BBeBCollector.cpp:19

Generated for libe-book by doxygen 1.9.3