FB2BinaryContext.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
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  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef FB2BINARYCONTEXT_H_INCLUDED
18 #define FB2BINARYCONTEXT_H_INCLUDED
19 
20 #include <string>
21 
22 #include "FB2ParserContext.h"
23 
24 namespace libebook
25 {
26 
28 {
29 public:
30  FB2BinaryContext(FB2ParserContext *parentContext, FB2Collector *collector);
31 
32 private:
33  virtual FB2XMLParserContext *element(const EBOOKToken &name, const EBOOKToken &ns);
34  virtual void endOfElement();
35  virtual void attribute(const EBOOKToken &name, const EBOOKToken *ns, const char *value);
36  virtual void text(const char *text);
37 
38 private:
39  std::string m_id;
40  std::string m_contentType;
41 };
42 
43 }
44 
45 #endif // FB2BINARYCONTEXT_H_INCLUDED
46 
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::string m_contentType
Definition: FB2BinaryContext.h:40
Base class for non-leaf element contexts.
Definition: FB2ParserContext.h:68
virtual void endOfElement()
Signalize the end of an element.
Definition: FB2BinaryContext.cpp:39
Definition: FB2Collector.h:26
Definition: FB2XMLParserContext.h:25
FB2BinaryContext(FB2ParserContext *parentContext, FB2Collector *collector)
Definition: FB2BinaryContext.cpp:27
Definition: FB2Token.h:125
Definition: EBOOKToken.h:23
virtual void text(const char *text)
Process textual content of an element.
Definition: FB2BinaryContext.cpp:61
virtual FB2XMLParserContext * element(const EBOOKToken &name, const EBOOKToken &ns)
Create a context for parsing a child element.
Definition: FB2BinaryContext.cpp:34
Definition: FB2BinaryContext.h:27
std::string m_id
Definition: FB2BinaryContext.h:39
virtual void attribute(const EBOOKToken &name, const EBOOKToken *ns, const char *value)
Process an attribute.
Definition: FB2BinaryContext.cpp:43
Base class for all contexts.
Definition: FB2ParserContext.h:30
const char * name
Definition: FB2Token.cpp:26

Generated for libe-book by doxygen 1.8.5