EPUBXMLSink.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

EPUBXMLSink.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 libepubgen 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 INCLUDED_EPUBXMLSINK_H
11 #define INCLUDED_EPUBXMLSINK_H
12
13 #include <deque>
14
15 #include <boost/shared_ptr.hpp>
16
17 #include <librevenge/librevenge.h>
18
19 #include <libepubgen/libepubgen.h>
20
21 namespace libepubgen
22 {
23
24 class EPUBXMLElement;
25
26 class EPUBXMLSink
27 {
28 typedef boost::shared_ptr<EPUBXMLElement> EPUBXMLElementPtr_t;
29
30 public:
31 EPUBXMLSink();
32
33 void openElement(const char *name, const librevenge::RVNGPropertyList &attributes = librevenge::RVNGPropertyList());
34 void closeElement(const char *name);
35
36 void insertEmptyElement(const char *name, const librevenge::RVNGPropertyList &attributes = librevenge::RVNGPropertyList());
37
38 void insertCharacters(const librevenge::RVNGString &characters);
39
40 void append(const EPUBXMLSink &other);
41
42 void writeTo(EPUBPackage &package, const char *name);
43
44 private:
45 std::deque<EPUBXMLElementPtr_t> m_elements;
46 };
47
48 }
49
50 #endif // INCLUDED_EPUBXMLSINK_H
51
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libepubgen::EPUBXMLSink::EPUBXMLElementPtr_t
boost::shared_ptr< EPUBXMLElement > EPUBXMLElementPtr_t
Definition: EPUBXMLSink.h:28
libepubgen
Definition: EPUBBinarySink.cpp:12
libepubgen::EPUBXMLSink::m_elements
std::deque< EPUBXMLElementPtr_t > m_elements
Definition: EPUBXMLSink.h:45
libepubgen::EPUBXMLSink::insertCharacters
void insertCharacters(const librevenge::RVNGString &characters)
Definition: EPUBXMLSink.cpp:152
libepubgen::EPUBXMLSink::insertEmptyElement
void insertEmptyElement(const char *name, const librevenge::RVNGPropertyList &attributes=librevenge::RVNGPropertyList())
Definition: EPUBXMLSink.cpp:146
libepubgen::EPUBXMLSink::EPUBXMLSink
EPUBXMLSink()
Definition: EPUBXMLSink.cpp:131
libepubgen::EPUBXMLSink::append
void append(const EPUBXMLSink &other)
Definition: EPUBXMLSink.cpp:157
libepubgen::EPUBXMLSink::closeElement
void closeElement(const char *name)
Definition: EPUBXMLSink.cpp:141
libepubgen::EPUBXMLSink::writeTo
void writeTo(EPUBPackage &package, const char *name)
Definition: EPUBXMLSink.cpp:162
libepubgen::EPUBXMLSink
Definition: EPUBXMLSink.h:26
libepubgen::EPUBXMLSink::openElement
void openElement(const char *name, const librevenge::RVNGPropertyList &attributes=librevenge::RVNGPropertyList())
Definition: EPUBXMLSink.cpp:136