#include <vtkXMLDataParser.h>
Inheritance diagram for vtkXMLDataParser:
vtkXMLDataParser provides a subclass of vtkXMLParser that constructs a representation of an XML data format's file using vtkXMLDataElement to represent each XML element. This representation is then used by vtkXMLReader and its subclasses to traverse the structure of the file and extract data.
Definition at line 41 of file vtkXMLDataParser.h.
Public Types | |
typedef vtkXMLParser | Superclass |
enum | { BigEndian, LittleEndian } |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkXMLDataElement * | GetRootElement () |
unsigned long | GetWordTypeSize (int wordType) |
virtual int | Parse () |
unsigned long | ReadInlineData (vtkXMLDataElement *element, int isAscii, void *buffer, int startWord, int numWords, int wordType) |
unsigned long | ReadInlineData (vtkXMLDataElement *element, int isAscii, char *buffer, int startWord, int numWords) |
unsigned long | ReadAppendedData (unsigned long offset, void *buffer, int startWord, int numWords, int wordType) |
unsigned long | ReadAppendedData (unsigned long offset, char *buffer, int startWord, int numWords) |
unsigned long | ReadAsciiData (void *buffer, int startWord, int numWords, int wordType) |
unsigned long | ReadBinaryData (void *buffer, int startWord, int maxWords, int wordType) |
virtual void | SetCompressor (vtkDataCompressor *) |
virtual vtkDataCompressor * | GetCompressor () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkXMLDataParser * | SafeDownCast (vtkObject *o) |
static vtkXMLDataParser * | New () |
Protected Member Functions | |
vtkXMLDataParser () | |
~vtkXMLDataParser () | |
virtual int | Parse (const char *) |
virtual int | Parse (const char *, unsigned int) |
void | StartElement (const char *name, const char **atts) |
void | EndElement (const char *) |
int | ParsingComplete () |
void | ClearStreamEOF () |
int | CheckPrimaryAttributes () |
void | FindAppendedDataPosition () |
unsigned long | FindInlineDataPosition (unsigned long start) |
int | ParseBuffer (const char *buffer, unsigned int count) |
void | AddElement (vtkXMLDataElement *element) |
void | PushOpenElement (vtkXMLDataElement *element) |
vtkXMLDataElement * | PopOpenElement () |
void | PerformByteSwap (void *data, int numWords, int wordSize) |
void | ReadCompressionHeader () |
unsigned int | FindBlockSize (unsigned int block) |
int | ReadBlock (unsigned int block, unsigned char *buffer) |
unsigned char * | ReadBlock (unsigned int block) |
unsigned long | ReadUncompressedData (unsigned char *data, unsigned long offset, unsigned long length) |
unsigned long | ReadCompressedData (unsigned char *data, unsigned long offset, unsigned long length) |
int | ParseAsciiData (int wordType) |
void | FreeAsciiBuffer () |
Protected Attributes | |
vtkXMLDataElement * | RootElement |
vtkXMLDataElement ** | OpenElements |
unsigned int | NumberOfOpenElements |
unsigned int | OpenElementsSize |
unsigned long | AppendedDataPosition |
int | AppendedDataMatched |
int | ByteOrder |
vtkInputStream * | DataStream |
vtkInputStream * | InlineDataStream |
vtkInputStream * | AppendedDataStream |
vtkDataCompressor * | Compressor |
unsigned int | NumberOfBlocks |
unsigned int | BlockUncompressedSize |
unsigned int | PartialLastBlockUncompressedSize |
unsigned int * | BlockCompressedSizes |
unsigned long * | BlockStartOffsets |
unsigned char * | AsciiDataBuffer |
int | AsciiDataBufferLength |
int | AsciiDataWordType |
unsigned long | AsciiDataPosition |
|
Reimplemented from vtkXMLParser. Definition at line 44 of file vtkXMLDataParser.h. |
|
Enumerate big and little endian byte order settings. Definition at line 51 of file vtkXMLDataParser.h. |
|
|
|
|
|
Reimplemented from vtkXMLParser. |
|
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 vtkXMLParser. |
|
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 vtkXMLParser. |
|
Reimplemented from vtkXMLParser. |
|
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 vtkXMLParser. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkXMLParser. |
|
Get the root element from the XML document. |
|
Read inline data from inside the given element. Returns the number of words read. |
|
Read inline data from inside the given element. Returns the number of words read. Definition at line 64 of file vtkXMLDataParser.h. References VTK_CHAR. |
|
Read from an appended data section starting at the given appended data offset. Returns the number of words read. |
|
Read from an appended data section starting at the given appended data offset. Returns the number of words read. Definition at line 75 of file vtkXMLDataParser.h. References VTK_CHAR. |
|
Read from an ascii data section starting at the current position in the stream. Returns the number of words read. |
|
Read from a data section starting at the current position in the stream. Returns the number of words read. |
|
Get/Set the compressor used to decompress binary and appended data after reading from the file. |
|
Get/Set the compressor used to decompress binary and appended data after reading from the file. |
|
Get the size of a word of the given type. |
|
Parse the XML input and check that the file is safe to read. Returns 1 for okay, 0 for error. Reimplemented from vtkXMLParser. |
|
Parse the XML message. If length is specified, parse only the first "length" characters Reimplemented from vtkXMLParser. |
|
Parse the XML message. If length is specified, parse only the first "length" characters Reimplemented from vtkXMLParser. |
|
Reimplemented from vtkXMLParser. |
|
Reimplemented from vtkXMLParser. |
|
Reimplemented from vtkXMLParser. |
|
|
|
|
|
|
|
|
|
Reimplemented from vtkXMLParser. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 147 of file vtkXMLDataParser.h. |
|
Definition at line 150 of file vtkXMLDataParser.h. |
|
Definition at line 151 of file vtkXMLDataParser.h. |
|
Definition at line 152 of file vtkXMLDataParser.h. |
|
Definition at line 155 of file vtkXMLDataParser.h. |
|
Definition at line 158 of file vtkXMLDataParser.h. |
|
Definition at line 161 of file vtkXMLDataParser.h. |
|
Definition at line 165 of file vtkXMLDataParser.h. |
|
Definition at line 169 of file vtkXMLDataParser.h. |
|
Definition at line 172 of file vtkXMLDataParser.h. |
|
Definition at line 175 of file vtkXMLDataParser.h. |
|
Definition at line 176 of file vtkXMLDataParser.h. |
|
Definition at line 177 of file vtkXMLDataParser.h. |
|
Definition at line 178 of file vtkXMLDataParser.h. |
|
Definition at line 179 of file vtkXMLDataParser.h. |
|
Definition at line 180 of file vtkXMLDataParser.h. |
|
Definition at line 183 of file vtkXMLDataParser.h. |
|
Definition at line 184 of file vtkXMLDataParser.h. |
|
Definition at line 185 of file vtkXMLDataParser.h. |
|
Definition at line 186 of file vtkXMLDataParser.h. |