28 #ifndef vtkXMLParser_h
29 #define vtkXMLParser_h
52 vtkSetMacro(Stream, istream*);
53 vtkGetMacro(Stream, istream*);
71 virtual int Parse(
const char* inputString);
72 virtual int Parse(
const char* inputString,
unsigned int length);
81 virtual int InitializeParser();
82 virtual int ParseChunk(
const char* inputString,
unsigned int length);
83 virtual int CleanupParser();
88 vtkSetStringMacro(FileName);
89 vtkGetStringMacro(FileName);
96 vtkSetMacro(IgnoreCharacterData,
int);
97 vtkGetMacro(IgnoreCharacterData,
int);
105 vtkSetStringMacro(Encoding);
106 vtkGetStringMacro(Encoding);
134 virtual int CreateParser();
138 virtual int ParseXML();
144 virtual int ParsingComplete();
151 virtual void StartElement(
const char*
name,
const char** atts);
155 virtual void EndElement(
const char*
name);
158 virtual void CharacterDataHandler(
const char*
data,
int length);
161 virtual void ReportStrayAttribute(
const char* element,
const char* attr,
165 virtual void ReportMissingAttribute(
const char* element,
const char* attr);
168 virtual void ReportBadAttribute(
const char* element,
const char* attr,
172 virtual void ReportUnknownElement(
const char* element);
175 virtual void ReportXmlParseError();
178 vtkTypeInt64 GetXMLByteIndex();
181 virtual int ParseBuffer(
const char* buffer,
unsigned int count);
184 int ParseBuffer(
const char* buffer);
188 static int IsSpace(
char c);
213 static_cast<vtkXMLParser*
>(parser)->CharacterDataHandler(data, length);
#define VTKIOXMLPARSER_EXPORT
abstract base class for most VTK objects
Parse XML to handle element tags and attributes.
void vtkXMLParserCharacterDataHandler(void *, const char *, int)
void vtkXMLParserEndElement(void *, const char *)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
void vtkXMLParserStartElement(void *, const char *, const char **)