FB2XMLParserContext.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 FB2XMLPARSERCONTEXT_H_INCLUDED
18 #define FB2XMLPARSERCONTEXT_H_INCLUDED
19 
20 namespace libebook
21 {
22 
23 struct EBOOKToken;
24 
26 {
27 public:
28  virtual ~FB2XMLParserContext() = 0;
29 
37  virtual FB2XMLParserContext *leaveContext() const = 0;
38 
43  virtual FB2XMLParserContext *element(const EBOOKToken &name, const EBOOKToken &ns) = 0;
44 
50  virtual void startOfElement() = 0;
51 
54  virtual void endOfElement() = 0;
55 
61  virtual void attribute(const EBOOKToken &name, const EBOOKToken *ns, const char *value) = 0;
62 
65  virtual void endOfAttributes() = 0;
66 
72  virtual void text(const char *value) = 0;
73 };
74 
75 }
76 
77 #endif // FB2XMLPARSERCONTEXT_H_INCLUDED
78 
79 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
virtual void endOfAttributes()=0
Signalize the end of attributes.
virtual void endOfElement()=0
Signalize the end of an element.
virtual FB2XMLParserContext * leaveContext() const =0
Destroy this context and return parent.
Definition: FB2XMLParserContext.h:25
virtual ~FB2XMLParserContext()=0
Definition: FB2XMLParserContext.cpp:22
virtual void text(const char *value)=0
Process textual content of an element.
Definition: FB2Token.h:125
Definition: EBOOKToken.h:23
virtual FB2XMLParserContext * element(const EBOOKToken &name, const EBOOKToken &ns)=0
Create a context for parsing a child element.
virtual void attribute(const EBOOKToken &name, const EBOOKToken *ns, const char *value)=0
Process an attribute.
const char * name
Definition: FB2Token.cpp:26
virtual void startOfElement()=0
Signalize the start of an element.

Generated for libe-book by doxygen 1.8.5