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
15namespace libebook
16{
17
19{
20protected:
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{
30protected:
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{
40protected:
41 void startOfElement() override;
42 void attribute(int name, const char *value) override;
43 void endOfAttributes() override;
44 void endOfElement() override;
45};
46
48{
49protected:
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: */
string name
Definition: HTMLHelpStream.cpp:80
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition: TealDocParser.cpp:231
Definition: EBOOKXMLContext.h:19
Definition: EBOOKXMLContextBase.h:19
void attribute(int name, const char *value) override
Process an attribute.
Definition: EBOOKXMLContextBase.cpp:19
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:32
void text(const char *value) override
Process textual content of an element.
Definition: EBOOKXMLContextBase.cpp:27
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:23
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.h:48
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:78
std::shared_ptr< EBOOKXMLContext > element(int name) override
Create a context for parsing a child element.
Definition: EBOOKXMLContextBase.cpp:82
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:93
void text(const char *value) override
Process textual content of an element.
Definition: EBOOKXMLContextBase.cpp:88
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.cpp:74
Definition: EBOOKXMLContextBase.h:39
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:66
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:70
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:58
Definition: EBOOKXMLContextBase.h:29
void endOfElement() override
Signalize the end of an element.
Definition: EBOOKXMLContextBase.cpp:54
void endOfAttributes() override
Signalize the end of attributes.
Definition: EBOOKXMLContextBase.cpp:44
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:40
void startOfElement() override
Signalize the start of an element.
Definition: EBOOKXMLContextBase.cpp:36
Definition: BBeBCollector.cpp:19

Generated for libe-book by doxygen 1.9.3