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