SoftBookParser.h Source File documentation

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
19 class SoftBookParser
20{
21 // disable copying
22 SoftBookParser(const SoftBookParser &);
23 SoftBookParser &operator=(const SoftBookParser &);
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:
36 const SoftBookHeader m_header;
37 librevenge::RVNGInputStream *const m_input;
38 SoftBookCollector m_collector;
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: */
SoftBookCollector.h
SoftBookHeader.h
libebook::SoftBookCollector
Definition SoftBookCollector.h:23
libebook::SoftBookHeader
Definition SoftBookHeader.h:19
libebook::SoftBookParser::createTextStream
void createTextStream()
Definition SoftBookParser.cpp:204
libebook::SoftBookParser::m_header
const SoftBookHeader m_header
Definition SoftBookParser.h:36
libebook::SoftBookParser::m_collector
SoftBookCollector m_collector
Definition SoftBookParser.h:38
libebook::SoftBookParser::m_input
librevenge::RVNGInputStream *const m_input
Definition SoftBookParser.h:37
libebook::SoftBookParser::m_resources
std::shared_ptr< librevenge::RVNGInputStream > m_resources
Definition SoftBookParser.h:39
libebook::SoftBookParser::m_text
std::shared_ptr< librevenge::RVNGInputStream > m_text
Definition SoftBookParser.h:40
libebook::SoftBookParser::getFileStream
std::shared_ptr< librevenge::RVNGInputStream > getFileStream(const char *name) const
Definition SoftBookParser.cpp:247
libebook::SoftBookParser::parse
bool parse()
Definition SoftBookParser.cpp:193
libebook::SoftBookParser::SoftBookParser
SoftBookParser(const SoftBookParser &)
libebook::SoftBookParser::operator=
SoftBookParser & operator=(const SoftBookParser &)
libebook::EBOOKHTMLToken::input
@ input
Definition EBOOKHTMLToken.h:89
libebook::EBOOKHTMLToken::name
@ name
Definition EBOOKHTMLToken.h:214
libebook
Definition BBeBCollector.cpp:19