MobiPocketParser.h Source File documentation

MobiPocketParser.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 MOBIPOCKETPARSER_H_INCLUDED
11#define MOBIPOCKETPARSER_H_INCLUDED
12
13#include "PDBParser.h"
14
15namespace libebook
16{
17
18 class MobiPocketParser : public PDBParser
19{
20 // disable copying
21 MobiPocketParser(const MobiPocketParser &other);
22 MobiPocketParser &operator=(const MobiPocketParser &other);
23
24public:
25 explicit MobiPocketParser(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document = 0);
26 virtual ~MobiPocketParser();
27
28 static bool checkType(unsigned type, unsigned creator);
29
30private:
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 // MOBIPOCKETPARSER_H_INCLUDED
40
41/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
type
EBOOKDocument::Type type
Definition EBOOKDocument.cpp:325
document
XMLTreeNodePtr_t document
Definition EBOOKHTMLParser.cpp:163
PDBParser.h
libebook::MobiPocketParser
Definition MobiPocketParser.h:19
libebook::MobiPocketParser::readSortInfoRecord
virtual void readSortInfoRecord(librevenge::RVNGInputStream *record)
Definition MobiPocketParser.cpp:49
libebook::MobiPocketParser::MobiPocketParser
MobiPocketParser(const MobiPocketParser &other)
libebook::MobiPocketParser::~MobiPocketParser
virtual ~MobiPocketParser()
Definition MobiPocketParser.cpp:35
libebook::MobiPocketParser::readAppInfoRecord
virtual void readAppInfoRecord(librevenge::RVNGInputStream *record)
Definition MobiPocketParser.cpp:44
libebook::MobiPocketParser::readIndexRecord
virtual void readIndexRecord(librevenge::RVNGInputStream *record)
Definition MobiPocketParser.cpp:54
libebook::MobiPocketParser::readDataRecord
virtual void readDataRecord(librevenge::RVNGInputStream *record, bool last=false)
Definition MobiPocketParser.cpp:60
libebook::MobiPocketParser::checkType
static bool checkType(unsigned type, unsigned creator)
Definition MobiPocketParser.cpp:39
libebook::MobiPocketParser::operator=
MobiPocketParser & operator=(const MobiPocketParser &other)
libebook::PDBParser
Definition PDBParser.h:26
libebook
Definition BBeBCollector.cpp:19