EBOOKXMLContext.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 EBOOKXMLCONTEXT_H_INCLUDED
11#define EBOOKXMLCONTEXT_H_INCLUDED
12
13#include <memory>
14
15 namespace libebook
16{
17
18 class EBOOKXMLContext
19{
20 public:
21 virtual ~EBOOKXMLContext() = 0;
22
28 virtual void startOfElement() = 0;
29
34 virtual void attribute(int name, const char *value) = 0;
35
38 virtual void endOfAttributes() = 0;
39
45 virtual std::shared_ptr<EBOOKXMLContext> element(int name) = 0;
46
52 virtual void text(const char *value) = 0;
53
56 virtual void endOfElement() = 0;
57};
58
59}
60
61#endif // EBOOKXMLCONTEXT_H_INCLUDED
62
63/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
name
string name
Definition HTMLHelpStream.cpp:80
value
qi::rule< Iterator, AttrValue_t, qi::space_type > value
Definition TealDocParser.cpp:231
libebook::EBOOKXMLContext
Definition EBOOKXMLContext.h:19
libebook::EBOOKXMLContext::text
virtual void text(const char *value)=0
Process textual content of an element.
libebook::EBOOKXMLContext::~EBOOKXMLContext
virtual ~EBOOKXMLContext()=0
Definition EBOOKXMLContext.cpp:15
libebook::EBOOKXMLContext::endOfAttributes
virtual void endOfAttributes()=0
Signalize the end of attributes.
libebook::EBOOKXMLContext::attribute
virtual void attribute(int name, const char *value)=0
Process an attribute.
libebook::EBOOKXMLContext::element
virtual std::shared_ptr< EBOOKXMLContext > element(int name)=0
Create a context for parsing a child element.
libebook::EBOOKXMLContext::startOfElement
virtual void startOfElement()=0
Signalize the start of an element.
libebook::EBOOKXMLContext::endOfElement
virtual void endOfElement()=0
Signalize the end of an element.
libebook
Definition BBeBCollector.cpp:19