8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SObject.h"
10#include <QtCore/SFile>
11#include <QtCore/SXmlReader>
14namespace rsh::ScriptBinding
68 UnexpectedElementError
88 ProcessingInstruction};
160 :
public SObjectStatic
180Q_DECLARE_METATYPE(SXmlReader::_SXmlReaderDummy);
The Sfile class provides an interface for reading from and writing to files.
Definition: SFile.h:20
This class is an abstract class, you can use these function in its derived classes.
Definition: SObject.h:35
Class to read xml files Sample on how to use this class.
Definition: SXmlReader.h:54
Boolean HasError()
Returns true if an error has occurred, otherwise false.
String NamespaceUri()
Returns the namespaceUri of a StartElement or EndElement.
TokenTypeEnum ReadNext()
Reads the next token and returns its type.
Boolean AtEnd()
Returns true if the reader has read until the end of the XML document, or if an Error() has occurred ...
String Name()
Returns the local name of a StartElement, EndElement, or an EntityReference.
Boolean IsWhitespace()
Returns true if the reader reports characters that only consist of white-space; otherwise returns fal...
String Text()
Returns the text of Characters, Comment, DTD, or EntityReference.
Number LineNumber()
Returns the current line number, starting with 1.
static SXmlReader New()
Default constructor to instantiate a XmlReader.
SkipCurrentElement()
Reads until the end of the current element, skipping any child nodes. This function is useful for ski...
Boolean IsStandaloneDocument()
Returns true if this document has been declared standalone in the XML declaration; otherwise returns ...
String DocumentEncoding()
If the TokenType() is StartDocument, this function returns the encoding string as specified in the XM...
TokenTypeEnum
Definition: SXmlReader.h:72
@ StartElement
Definition: SXmlReader.h:79
@ DTD
Definition: SXmlReader.h:86
@ Invalid
Definition: SXmlReader.h:74
@ EndDocument
Definition: SXmlReader.h:78
@ EndElement
Definition: SXmlReader.h:82
@ NoToken
Definition: SXmlReader.h:73
@ StartDocument
Definition: SXmlReader.h:75
@ EntityReference
Definition: SXmlReader.h:87
@ Comment
Definition: SXmlReader.h:85
@ Characters
Definition: SXmlReader.h:83
TokenTypeEnum TokenType()
Returns the type of the current token.
static String toString()
Get the type of the variable.
Array Attributes()
Returns the attributes of a StartElement.
String TokenString()
Returns the reader's current token as string.
SetFile(SFile File)
Sets the current file to device. Setting the device resets reader.
ErrorEnum Error()
Returns the type of the current error, or NoError if no error occurred.
String DocumentVersion()
If the TokenType() is StartDocument, this function returns the version string as specified in the XML...
ErrorEnum
Definition: SXmlReader.h:64
@ NoError
Definition: SXmlReader.h:65
@ NotWellFormedError
Definition: SXmlReader.h:66
@ PrematureEndOfDocumentError
Definition: SXmlReader.h:67
String toString()
Get the type of the variable.