IMPParser.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 IMPPARSER_H_INCLUDED
11 #define IMPPARSER_H_INCLUDED
12 
13 #include <boost/shared_ptr.hpp>
14 
15 #include "IMPCollector.h"
16 #include "IMPHeader.h"
17 
18 
19 namespace libebook
20 {
21 
22 class IMPParser
23 {
24  // disable copying
25  IMPParser(const IMPParser &);
26  IMPParser &operator=(const IMPParser &);
27 
28 public:
29  IMPParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document);
30 
31  bool parse();
32 
33 private:
34  void createTextStream();
35 
36  boost::shared_ptr<librevenge::RVNGInputStream> getFileStream(const char *name) const;
37 
38 private:
40  librevenge::RVNGInputStream *const m_input;
42  boost::shared_ptr<librevenge::RVNGInputStream> m_resources;
43  boost::shared_ptr<librevenge::RVNGInputStream> m_text;
44 };
45 
46 }
47 
48 #endif // IMPPARSER_H_INCLUDED
49 
50 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
boost::shared_ptr< librevenge::RVNGInputStream > m_text
Definition: IMPParser.h:43
Definition: EBOOKHTMLToken.h:91
Definition: IMPHeader.h:21
boost::shared_ptr< librevenge::RVNGInputStream > getFileStream(const char *name) const
Definition: IMPParser.cpp:246
void createTextStream()
Definition: IMPParser.cpp:203
Definition: IMPParser.h:22
boost::shared_ptr< librevenge::RVNGInputStream > m_resources
Definition: IMPParser.h:42
IMPParser(const IMPParser &)
const IMPHeader m_header
Definition: IMPParser.h:39
string name
Definition: CHMStream.cpp:80
librevenge::RVNGInputStream *const m_input
Definition: IMPParser.h:40
Definition: IMPCollector.h:22
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:169
IMPCollector m_collector
Definition: IMPParser.h:41
Definition: CHMParser.cpp:20
IMPParser & operator=(const IMPParser &)
bool parse()
Definition: IMPParser.cpp:192

Generated for libe-book by doxygen 1.8.8