29 #ifndef vtkXMLParser_h
30 #define vtkXMLParser_h
32 #include "vtkIOXMLParserModule.h"
55 vtkGetMacro(Stream, istream*);
78 virtual int Parse(
const char* inputString);
79 virtual int Parse(
const char* inputString,
unsigned int length);
93 virtual int InitializeParser();
94 virtual int ParseChunk(
const char* inputString,
unsigned int length);
95 virtual int CleanupParser();
102 vtkSetStringMacro(FileName);
113 vtkGetMacro(IgnoreCharacterData,
int);
123 vtkSetStringMacro(Encoding);
152 virtual int CreateParser();
156 virtual int ParseXML();
162 virtual int ParsingComplete();
169 virtual void StartElement(
const char*
name,
const char** atts);
173 virtual void EndElement(
const char*
name);
176 virtual void CharacterDataHandler(
const char*
data,
int length);
179 virtual void ReportStrayAttribute(
const char* element,
const char* attr,
183 virtual void ReportMissingAttribute(
const char* element,
const char* attr);
186 virtual void ReportBadAttribute(
const char* element,
const char* attr,
190 virtual void ReportUnknownElement(
const char* element);
193 virtual void ReportXmlParseError();
196 vtkTypeInt64 GetXMLByteIndex();
199 virtual int ParseBuffer(
const char* buffer,
unsigned int count);
202 int ParseBuffer(
const char* buffer);
206 static int IsSpace(
char c);
216 void operator=(const
vtkXMLParser&) VTK_DELETE_FUNCTION;
229 static_cast<vtkXMLParser*
>(parser)->CharacterDataHandler(data, length);
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Parse XML to handle element tags and attributes.
void vtkXMLParserCharacterDataHandler(void *, const char *, int)
void vtkXMLParserEndElement(void *, const char *)
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void vtkXMLParserStartElement(void *, const char *, const char **)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...