LibreOffice Module tools (master) 1
Public Member Functions | Private Attributes | List of all members
tools::XmlWalker Class Referencefinal

XmlWalker main purpose is to make it easier for walking the parsed XML DOM tree. More...

#include <XmlWalker.hxx>

Public Member Functions

 XmlWalker ()
 
 ~XmlWalker ()
 
bool open (SvStream *pStream)
 
OString name ()
 
OString namespaceHref ()
 
OString namespacePrefix ()
 
OString content ()
 
void children ()
 
void parent ()
 
void next ()
 
bool isValid () const
 
OString attribute (const OString &sName) const
 

Private Attributes

std::unique_ptr< XmlWalkerImplmpImpl
 

Detailed Description

XmlWalker main purpose is to make it easier for walking the parsed XML DOM tree.

It hides all the libxml2 and C -isms and makes the usage more comfortable from LO developer point of view.

Definition at line 31 of file XmlWalker.hxx.

Constructor & Destructor Documentation

◆ XmlWalker()

tools::XmlWalker::XmlWalker ( )

Definition at line 36 of file XmlWalker.cxx.

◆ ~XmlWalker()

tools::XmlWalker::~XmlWalker ( )

Definition at line 41 of file XmlWalker.cxx.

References mpImpl.

Member Function Documentation

◆ attribute()

OString tools::XmlWalker::attribute ( const OString &  sName) const

Definition at line 99 of file XmlWalker.cxx.

References mpImpl, and sName.

◆ children()

void tools::XmlWalker::children ( )

Definition at line 87 of file XmlWalker.cxx.

References mpImpl.

◆ content()

OString tools::XmlWalker::content ( )

Definition at line 74 of file XmlWalker.cxx.

References mpImpl.

◆ isValid()

bool tools::XmlWalker::isValid ( ) const

Definition at line 112 of file XmlWalker.cxx.

References mpImpl.

◆ name()

OString tools::XmlWalker::name ( )

Definition at line 62 of file XmlWalker.cxx.

References mpImpl.

◆ namespaceHref()

OString tools::XmlWalker::namespaceHref ( )

Definition at line 64 of file XmlWalker.cxx.

References mpImpl.

◆ namespacePrefix()

OString tools::XmlWalker::namespacePrefix ( )

Definition at line 69 of file XmlWalker.cxx.

References mpImpl.

◆ next()

void tools::XmlWalker::next ( )

Definition at line 110 of file XmlWalker.cxx.

References mpImpl.

◆ open()

bool tools::XmlWalker::open ( SvStream pStream)

Definition at line 47 of file XmlWalker.cxx.

References aBuffer, mpImpl, SvStream::ReadBytes(), and SvStream::remainingSize().

◆ parent()

void tools::XmlWalker::parent ( )

Definition at line 93 of file XmlWalker.cxx.

References mpImpl.

Member Data Documentation

◆ mpImpl

std::unique_ptr<XmlWalkerImpl> tools::XmlWalker::mpImpl
private

The documentation for this class was generated from the following files: