LibreOffice Module tools (master) 1
XmlWalker.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice 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_TOOLS_XMLWALKER_HXX
11#define INCLUDED_TOOLS_XMLWALKER_HXX
12
13#include <tools/toolsdllapi.h>
14#include <rtl/string.hxx>
15#include <memory>
16
17class SvStream;
18
19namespace tools
20{
21struct XmlWalkerImpl;
22
32{
33private:
34 std::unique_ptr<XmlWalkerImpl> mpImpl;
35
36public:
37 XmlWalker();
38
39 ~XmlWalker();
40
41 bool open(SvStream* pStream);
42
43 OString name();
44 OString namespaceHref();
45 OString namespacePrefix();
46
47 OString content();
48 void children();
49 void parent();
50 void next();
51 bool isValid() const;
52 OString attribute(const OString& sName) const;
53};
54
55} // end tools namespace
56
57#endif // INCLUDED_TOOLS_XMLWRITER_HXX
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XmlWalker main purpose is to make it easier for walking the parsed XML DOM tree.
Definition: XmlWalker.hxx:32
std::unique_ptr< XmlWalkerImpl > mpImpl
Definition: XmlWalker.hxx:34
const char * name
Note: this class is a true marvel of engineering: because the author could not decide whether it's be...
sal_Int32 attribute
#define TOOLS_DLLPUBLIC
Definition: toolsdllapi.h:28