Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
XmlParser Class Reference

#include <xmlparser.h>

+ Inheritance diagram for XmlParser:
+ Collaboration diagram for XmlParser:

Public Member Functions

 XmlParser (QXmlStreamReader &r, bool whitespaceOnlyData=false)
 
virtual ~XmlParser ()=default
 
bool parse ()
 

Protected Member Functions

virtual bool startElement (QStringView namespaceURI, QStringView localName, QStringView qName, const QXmlStreamAttributes &atts)
 
virtual bool endElement (QStringView namespaceURI, QStringView localName, QStringView qName)
 
virtual bool characters (QStringView text)
 
virtual bool endDocument ()
 
virtual bool fatalError (qint64 line, qint64 column, const QString &message)
 

Protected Attributes

QXmlStreamReader & reader
 
bool reportWhitespaceOnlyData
 

Detailed Description

Definition at line 12 of file xmlparser.h.

Constructor & Destructor Documentation

◆ XmlParser()

XmlParser::XmlParser ( QXmlStreamReader & r,
bool whitespaceOnlyData = false )
inline

Definition at line 15 of file xmlparser.h.

References XmlParser(), and reportWhitespaceOnlyData.

Referenced by XmlParser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~XmlParser()

virtual XmlParser::~XmlParser ( )
virtualdefault

Member Function Documentation

◆ characters()

bool XmlParser::characters ( QStringView text)
protectedvirtual

Reimplemented in QphHandler, QphHandler, UiReader, UiReader, XLIFFHandler, and XLIFFHandler.

Definition at line 65 of file xmlparser.cpp.

◆ endDocument()

bool XmlParser::endDocument ( )
protectedvirtual

Reimplemented in XLIFFHandler, and XLIFFHandler.

Definition at line 79 of file xmlparser.cpp.

◆ endElement()

bool XmlParser::endElement ( QStringView namespaceURI,
QStringView localName,
QStringView qName )
protectedvirtual

Reimplemented in QphHandler, QphHandler, UiReader, UiReader, XLIFFHandler, and XLIFFHandler.

Definition at line 56 of file xmlparser.cpp.

◆ fatalError()

bool XmlParser::fatalError ( qint64 line,
qint64 column,
const QString & message )
protectedvirtual

Reimplemented in QphHandler, QphHandler, UiReader, UiReader, XLIFFHandler, and XLIFFHandler.

Definition at line 71 of file xmlparser.cpp.

◆ parse()

QT_BEGIN_NAMESPACE bool XmlParser::parse ( )

Definition at line 8 of file xmlparser.cpp.

Referenced by PhraseBook::load(), loadUI(), and loadXLIFF().

+ Here is the caller graph for this function:

◆ startElement()

bool XmlParser::startElement ( QStringView namespaceURI,
QStringView localName,
QStringView qName,
const QXmlStreamAttributes & atts )
protectedvirtual

Reimplemented in QphHandler, QphHandler, UiReader, UiReader, XLIFFHandler, and XLIFFHandler.

Definition at line 46 of file xmlparser.cpp.

Member Data Documentation

◆ reader

QXmlStreamReader& XmlParser::reader
protected

Definition at line 32 of file xmlparser.h.

◆ reportWhitespaceOnlyData

bool XmlParser::reportWhitespaceOnlyData
protected

Definition at line 33 of file xmlparser.h.

Referenced by XmlParser().


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