EBOOKXMLContextBase.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 EBOOKXMLCONTEXTBASE_H_INCLUDED
11 #define EBOOKXMLCONTEXTBASE_H_INCLUDED
12 
13 #include "EBOOKXMLContext.h"
14 
15 namespace libebook
16 {
17 
19 {
20 protected:
21  void startOfElement() override;
22  void attribute(int name, const char *value) override;
23  void endOfAttributes() override;
24  void text(const char *value) override;
25  void endOfElement() override;
26 };
27 
29 {
30 protected:
31  void startOfElement() override;
32  void attribute(int name, const char *value) override;
33  void endOfAttributes() override;
34  std::shared_ptr<EBOOKXMLContext> element(int name) override;
35  void endOfElement() override;
36 };
37 
39 {
40 protected:
41  void startOfElement() override;
42  void attribute(int name, const char *value) override;
43  void endOfAttributes() override;
44  void endOfElement() override;
45 };
46 
48 {
49 protected:
50  void startOfElement() override;
51  void endOfAttributes() override;
52  std::shared_ptr<EBOOKXMLContext> element(int name) override;
53  void text(const char *value) override;
54  void endOfElement() override;
55 };
56 
57 }
58 
59 #endif // EBOOKXMLCONTEXTBASE_H_INCLUDED
60 
61 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void text(const char *value) override
Process textual content of an element.
Definition: EBOOKXMLContextBase.cpp:88
Definition: EBOOKXMLContextBase.h:18
Definition: EBOOKXMLContextBase.h:47
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:93
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.cpp:58
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:66
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:54
Definition: EBOOKXMLContextBase.h:38
void startOfElement() override
Signalize the start of an element.
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:23
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:70
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:44
const char * name
Definition: EBOOKHTMLToken.cpp:44
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:32
Definition: EBOOKXMLContextBase.h:28
void attribute(int name, const char *value) override
Process an attribute.
Definition: EBOOKXMLContextBase.cpp:62
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.cpp:74
void attribute(int name, const char *value) override
Process an attribute.
Definition: EBOOKXMLContextBase.cpp:40
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.cpp:36
Definition: BBeBCollector.cpp:18
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
void text(const char *value) override
Process textual content of an element.
Definition: EBOOKXMLContextBase.cpp:27
std::shared_ptr< EBOOKXMLContext > element(int name) override
Create a context for parsing a child element.
Definition: EBOOKXMLContextBase.cpp:48
void attribute(int name, const char *value) override
Process an attribute.
Definition: EBOOKXMLContextBase.cpp:19
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:78
Definition: EBOOKXMLContext.h:18
std::shared_ptr< EBOOKXMLContext > element(int name) override
Create a context for parsing a child element.
Definition: EBOOKXMLContextBase.cpp:82

Generated for libe-book by doxygen 1.8.14