 |
VTK
9.1.0
|
Go to the documentation of this file.
26 #ifndef vtkXMLParser_h
27 #define vtkXMLParser_h
29 #include "vtkIOXMLParserModule.h"
51 vtkSetMacro(Stream, istream*);
52 vtkGetMacro(Stream, istream*);
75 virtual int Parse(
const char* inputString);
76 virtual int Parse(
const char* inputString,
unsigned int length);
109 vtkSetMacro(IgnoreCharacterData,
int);
110 vtkGetMacro(IgnoreCharacterData,
int);
120 vtkSetStringMacro(Encoding);
121 vtkGetStringMacro(Encoding);
vtkGetFilePathMacro(FileName)
Set and get file name.
Parse XML to handle element tags and attributes.
virtual int ParsingComplete()
virtual int InitializeParser()
When parsing fragments of XML, or when streaming XML, use the following three methods:
friend void vtkXMLParserEndElement(void *, const char *)
static int IsSpace(char c)
void vtkXMLParserStartElement(void *, const char *, const char **)
abstract base class for most VTK objects
int ParseBuffer(const char *buffer)
void vtkXMLParserEndElement(void *, const char *)
virtual int ParseBuffer(const char *buffer, unsigned int count)
vtkTypeInt64 TellG()
Used by subclasses and their supporting classes.
void SeekG(vtkTypeInt64 position)
Used by subclasses and their supporting classes.
virtual void ReportStrayAttribute(const char *element, const char *attr, const char *value)
static vtkXMLParser * New()
virtual void ReportUnknownElement(const char *element)
virtual int Parse(const char *inputString, unsigned int length)
Parse the XML message.
friend void vtkXMLParserStartElement(void *, const char *, const char **)
virtual void ReportMissingAttribute(const char *element, const char *attr)
a simple class to control print indentation
virtual int Parse()
Parse the XML input.
virtual void EndElement(const char *name)
virtual int ParseChunk(const char *inputString, unsigned int length)
When parsing fragments of XML, or when streaming XML, use the following three methods:
void vtkXMLParserCharacterDataHandler(void *, const char *, int)
virtual void StartElement(const char *name, const char **atts)
virtual void ReportXmlParseError()
virtual int Parse(const char *inputString)
Parse the XML message.
virtual int CreateParser()
virtual int CleanupParser()
When parsing fragments of XML, or when streaming XML, use the following three methods:
vtkTypeInt64 GetXMLByteIndex()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Set and get file name.
virtual void CharacterDataHandler(const char *data, int length)
virtual void ReportBadAttribute(const char *element, const char *attr, const char *value)