MOBIParser.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 MOBIPARSER_H_INCLUDED
11 #define MOBIPARSER_H_INCLUDED
12 
13 #include "PDXParser.h"
14 
15 namespace libebook
16 {
17 
18 class MOBIParser : public PDXParser
19 {
20  // disable copying
21  MOBIParser(const MOBIParser &other);
22  MOBIParser &operator=(const MOBIParser &other);
23 
24 public:
25  explicit MOBIParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document = 0);
26  virtual ~MOBIParser();
27 
28  static bool checkType(unsigned type, unsigned creator);
29 
30 private:
31  virtual void readAppInfoRecord(librevenge::RVNGInputStream *record);
32  virtual void readSortInfoRecord(librevenge::RVNGInputStream *record);
33  virtual void readIndexRecord(librevenge::RVNGInputStream *record);
34  virtual void readDataRecord(librevenge::RVNGInputStream *record, bool last = false);
35 };
36 
37 }
38 
39 #endif // MOBIPARSER_H_INCLUDED
40 
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: MOBIParser.h:18
Definition: EBOOKHTMLToken.h:91
virtual void readAppInfoRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:44
virtual ~MOBIParser()
Definition: MOBIParser.cpp:35
virtual void readDataRecord(librevenge::RVNGInputStream *record, bool last=false)
Definition: MOBIParser.cpp:60
Definition: EBOOKOPFToken.h:52
Definition: PDXParser.h:25
MOBIParser(const MOBIParser &other)
EBOOKDocument::Type type
Definition: EBOOKDocument.cpp:328
virtual void readIndexRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:54
static bool checkType(unsigned type, unsigned creator)
Definition: MOBIParser.cpp:39
MOBIParser & operator=(const MOBIParser &other)
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:169
Definition: CHMParser.cpp:20
virtual void readSortInfoRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:49

Generated for libe-book by doxygen 1.8.8