FictionBook2Parser.h Source File documentation

FictionBook2Parser.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 FICTIONBOOK2PARSER_H_INCLUDED
11 #define FICTIONBOOK2PARSER_H_INCLUDED
12
13
14 namespace libebook
15 {
16
17 class FictionBook2XMLParserContext;
18
19 class FictionBook2Parser
20 {
21 // no copying
22 FictionBook2Parser(const FictionBook2Parser &other);
23 FictionBook2Parser &operator=(const FictionBook2Parser &other);
24
25 public:
26 explicit FictionBook2Parser(librevenge::RVNGInputStream *input);
27
28 bool parse(FictionBook2XMLParserContext *context) const;
29 bool parse(librevenge::RVNGTextInterface *document) const;
30
31 private:
32 librevenge::RVNGInputStream *const m_input;
33 };
34
35 }
36
37 #endif // FICTIONBOOK2PARSER_H_INCLUDED
38
39 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
m_metadata
librevenge::RVNGPropertyList m_metadata
Definition: FictionBook2Parser.cpp:78
libebook::FictionBook2Parser::m_input
librevenge::RVNGInputStream *const m_input
Definition: FictionBook2Parser.h:32
m_collector
FictionBook2ExtrasCollector m_collector
Definition: FictionBook2Parser.cpp:101
libebook::FictionBook2Token::FictionBook
@ FictionBook
Definition: FictionBook2Token.h:54
libebook::FictionBook2Collector::BinaryMap_t
std::unordered_map< std::string, Binary > BinaryMap_t
Definition: FictionBook2Collector.h:57
FictionBook2Token.h
ebookXMLReadFromStream
int ebookXMLReadFromStream(void *context, char *buffer, int len)
Definition: libebook_xml.cpp:19
m_notes
FictionBook2Collector::NoteMap_t & m_notes
Definition: FictionBook2Parser.cpp:56
libebook::EBOOKHTMLToken::body
@ body
Definition: EBOOKHTMLToken.h:48
newContext
ContextType newContext
Definition: XMLCollector.cpp:570
libebook
Definition: BBeBCollector.cpp:19
FictionBook2BlockContext.h
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
libebook::FictionBook2Collector::NoteMap_t
std::unordered_map< std::string, Note > NoteMap_t
Definition: FictionBook2Collector.h:58
libebook::FictionBook2Parser::parse
bool parse(FictionBook2XMLParserContext *context) const
Definition: FictionBook2Parser.cpp:358
libebook_utils.h
libebook::FictionBook2Token::NS_FICTIONBOOK
@ NS_FICTIONBOOK
Definition: FictionBook2Token.h:29
text
qi::rule< Iterator, AttrValue_t, qi::space_type > text
Definition: TealDocParser.cpp:232
libebook::EBOOKOPFToken::description
@ description
Definition: EBOOKOPFToken.h:53
m_input
librevenge::RVNGInputStream * m_input
Definition: PeanutPressParser.cpp:262
context
ContextType context
Definition: XMLCollector.cpp:568
m_contentCollector
FictionBook2ContentCollector m_contentCollector
Definition: FictionBook2Parser.cpp:80
FictionBook2TableContext.h
libebook::getFictionBook2Token
const FictionBook2TokenData * getFictionBook2Token(const char *const str, const unsigned length)
Definition: FictionBook2Token.cpp:29
m_bodyRead
bool m_bodyRead
Definition: FictionBook2Parser.cpp:81
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:163
m_firstBody
bool m_firstBody
Definition: FictionBook2Parser.cpp:102
ebookXMLCloseStream
int ebookXMLCloseStream(void *)
Definition: libebook_xml.cpp:43
libebook::FictionBook2XMLParserContext
Definition: FictionBook2XMLParserContext.h:19
libebook::FictionBook2Parser::FictionBook2Parser
FictionBook2Parser(const FictionBook2Parser &other)
libebook::FictionBook2Parser
Definition: FictionBook2Parser.h:20
FictionBook2ContentCollector.h
libebook::EBOOKHTMLToken::input
@ input
Definition: EBOOKHTMLToken.h:89
libebook::FictionBook2Token::NS_XMLNS
@ NS_XMLNS
Definition: FictionBook2Token.h:32
libebook::FictionBook2Parser::operator=
FictionBook2Parser & operator=(const FictionBook2Parser &other)
libebook::getFictionBook2TokenID
int getFictionBook2TokenID(const FictionBook2TokenData &token)
Definition: FictionBook2Token.cpp:50
FictionBook2Collector.h
m_metadataCollector
FictionBook2MetadataCollector m_metadataCollector
Definition: FictionBook2Parser.cpp:79
name
string name
Definition: HTMLHelpStream.cpp:80
FictionBook2BinaryContext.h
FictionBook2ExtrasCollector.h
m_bitmaps
FictionBook2Collector::BinaryMap_t & m_bitmaps
Definition: FictionBook2Parser.cpp:57
FictionBook2MetadataCollector.h
libebook_xml.h
FictionBook2TextContext.h
FictionBook2MetadataContext.h
m_document
librevenge::RVNGTextInterface *const m_document
Definition: FictionBook2Parser.cpp:55
libebook::FictionBook2Token::stylesheet
@ stylesheet
Definition: FictionBook2Token.h:85
FictionBook2Parser.h
libebook::FictionBook2Token::binary
@ binary
Definition: FictionBook2Token.h:38
m_generating
bool m_generating
Definition: FictionBook2Parser.cpp:58