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