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);
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: */
libebook::MOBIParser::readIndexRecord
virtual void readIndexRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:54
libebook::MOBIParser::readAppInfoRecord
virtual void readAppInfoRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:44
libebook::MOBIParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition: MOBIParser.cpp:39
libebook
Definition: CHMParser.cpp:21
libebook::PDXParser
Definition: PDXParser.h:26
libebook_utils.h
libebook::MOBIParser::~MOBIParser
virtual ~MOBIParser()
Definition: MOBIParser.cpp:35
libebook::MOBIParser::MOBIParser
MOBIParser(const MOBIParser &other)
libebook::EBOOKOPFToken::creator
@ creator
Definition: EBOOKOPFToken.h:52
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:169
libebook::UnsupportedFormat
Definition: libebook_utils.h:158
libebook::EBOOKHTMLToken::input
@ input
Definition: EBOOKHTMLToken.h:91
libebook::MOBIParser
Definition: MOBIParser.h:19
libebook::MOBIParser::operator=
MOBIParser & operator=(const MOBIParser &other)
MOBIParser.h
type
EBOOKDocument::Type type
Definition: EBOOKDocument.cpp:328
PDX_CODE
#define PDX_CODE(s)
Definition: PDXParser.h:18
PDXParser.h
libebook::MOBIParser::readDataRecord
virtual void readDataRecord(librevenge::RVNGInputStream *record, bool last=false)
Definition: MOBIParser.cpp:60
libebook::MOBIParser::readSortInfoRecord
virtual void readSortInfoRecord(librevenge::RVNGInputStream *record)
Definition: MOBIParser.cpp:49

Generated for libe-book by doxygen 1.8.18