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 
16 namespace libebook
17 {
18 
20 {
21  // disable copying
24 
25 public:
26  SoftBookParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document);
27 
28  bool parse();
29 
30 private:
31  void createTextStream();
32 
33  std::shared_ptr<librevenge::RVNGInputStream> getFileStream(const char *name) const;
34 
35 private:
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: */
SoftBookCollector m_collector
Definition: SoftBookParser.h:38
Definition: SoftBookHeader.h:18
Definition: EBOOKHTMLToken.h:89
void createTextStream()
Definition: SoftBookParser.cpp:204
std::shared_ptr< librevenge::RVNGInputStream > m_resources
Definition: SoftBookParser.h:39
SoftBookParser(const SoftBookParser &)
librevenge::RVNGInputStream *const m_input
Definition: SoftBookParser.h:37
bool parse()
Definition: SoftBookParser.cpp:193
const SoftBookHeader m_header
Definition: SoftBookParser.h:36
std::shared_ptr< librevenge::RVNGInputStream > m_text
Definition: SoftBookParser.h:40
Definition: SoftBookParser.h:19
const char * name
Definition: EBOOKHTMLToken.cpp:44
SoftBookParser & operator=(const SoftBookParser &)
std::shared_ptr< librevenge::RVNGInputStream > getFileStream(const char *name) const
Definition: SoftBookParser.cpp:247
Definition: SoftBookCollector.h:22
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
Definition: BBeBCollector.cpp:18

Generated for libe-book by doxygen 1.8.14