#include <vtkXMLParser.h>
Inheritance diagram for vtkXMLParser:
vtkXMLParser reads a stream and parses XML element tags and corresponding attributes. Each element begin tag and its attributes are sent to the StartElement method. Each element end tag is sent to the EndElement method. Subclasses should replace these methods to actually use the tags.
Definition at line 40 of file vtkXMLParser.h.
virtual void | SetStream (istream *) |
virtual istream * | GetStream () |
static vtkXMLParser * | New () |
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
long | TellG () |
void | SeekG (long position) |
virtual int | Parse () |
virtual int | Parse (const char *inputString) |
virtual int | Parse (const char *inputString, unsigned int length) |
virtual int | InitializeParser () |
virtual int | ParseChunk (const char *inputString, unsigned int length) |
virtual int | CleanupParser () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkXMLParser * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkXMLParser () | |
~vtkXMLParser () | |
virtual int | ParseXML () |
virtual int | ParsingComplete () |
virtual void | StartElement (const char *name, const char **atts) |
virtual void | EndElement (const char *name) |
virtual void | CharacterDataHandler (const char *data, int length) |
virtual void | ReportStrayAttribute (const char *element, const char *attr, const char *value) |
virtual void | ReportMissingAttribute (const char *element, const char *attr) |
virtual void | ReportBadAttribute (const char *element, const char *attr, const char *value) |
virtual void | ReportUnknownElement (const char *element) |
virtual void | ReportXmlParseError () |
unsigned long | GetXMLByteIndex () |
virtual int | ParseBuffer (const char *buffer, unsigned int count) |
int | ParseBuffer (const char *buffer) |
Static Protected Member Functions | |
static int | IsSpace (char c) |
Protected Attributes | |
istream * | Stream |
char * | FileName |
int | ParseError |
const char * | InputString |
int | InputStringLength |
void * | Parser |
Friends | |
void | vtkXMLParserStartElement (void *, const char *, const char **) |
void | vtkXMLParserEndElement (void *, const char *) |
void | vtkXMLParserCharacterDataHandler (void *, const char *, int) |
|
Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. Definition at line 43 of file vtkXMLParser.h. |
|
|
|
|
|
Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Get/Set the input stream. Reimplemented from vtkObject. Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Get/Set the input stream. |
|
Get/Set the input stream. |
|
Used by subclasses and their supporting classes. These methods wrap around the tellg and seekg methods of the input stream to work-around stream bugs on various platforms. |
|
Used by subclasses and their supporting classes. These methods wrap around the tellg and seekg methods of the input stream to work-around stream bugs on various platforms. |
|
Parse the XML input. Reimplemented in vtkXMLDataParser. |
|
Parse the XML message. If length is specified, parse only the first "length" characters Reimplemented in vtkXMLDataParser. |
|
Parse the XML input. |
|
When parsing fragments of XML or streaming XML, use the following three methods. InitializeParser method initialize parser but does not perform any actual parsing. ParseChunk parses framgent of XML. This has to match to what was already parsed. CleanupParser finishes parsing. If there were errors, CleanupParser will report them. |
|
When parsing fragments of XML or streaming XML, use the following three methods. InitializeParser method initialize parser but does not perform any actual parsing. ParseChunk parses framgent of XML. This has to match to what was already parsed. CleanupParser finishes parsing. If there were errors, CleanupParser will report them. |
|
When parsing fragments of XML or streaming XML, use the following three methods. InitializeParser method initialize parser but does not perform any actual parsing. ParseChunk parses framgent of XML. This has to match to what was already parsed. CleanupParser finishes parsing. If there were errors, CleanupParser will report them. |
|
Set and get file name. Reimplemented in vtkXMLFileReadTester. |
|
Set and get file name. Reimplemented in vtkXMLFileReadTester. |
|
|
|
Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLDataParser, and vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLDataParser. |
|
|
|
Reimplemented in vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLFileReadTester. |
|
Reimplemented in vtkXMLFileReadTester. |
|
|
|
Reimplemented in vtkXMLDataParser. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 96 of file vtkXMLParser.h. |
|
Reimplemented in vtkXMLFileReadTester. Definition at line 99 of file vtkXMLParser.h. |
|
Definition at line 103 of file vtkXMLParser.h. |
|
Definition at line 106 of file vtkXMLParser.h. |
|
Definition at line 107 of file vtkXMLParser.h. |
|
Definition at line 110 of file vtkXMLParser.h. |