|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   32 #ifndef vtkXMLDataParser_h 
   33 #define vtkXMLDataParser_h 
   35 #include "vtkIOXMLParserModule.h"  
   68     vtkTypeUInt64 startWord, 
size_t numWords, 
int wordType);
 
   70     vtkXMLDataElement* element, 
int isAscii, 
char* buffer, vtkTypeUInt64 startWord, 
size_t numWords)
 
   72     return this->ReadInlineData(element, isAscii, buffer, startWord, numWords, 
VTK_CHAR);
 
   79   size_t ReadAppendedData(
 
   80     vtkTypeInt64 
offset, 
void* buffer, vtkTypeUInt64 startWord, 
size_t numWords, 
int wordType);
 
   82     vtkTypeInt64 
offset, 
char* buffer, vtkTypeUInt64 startWord, 
size_t numWords)
 
   84     return this->ReadAppendedData(
offset, buffer, startWord, numWords, 
VTK_CHAR);
 
   91   size_t ReadAsciiData(
void* buffer, vtkTypeUInt64 startWord, 
size_t numWords, 
int wordType);
 
   97   size_t ReadBinaryData(
void* buffer, vtkTypeUInt64 startWord, 
size_t maxWords, 
int wordType);
 
  111   size_t GetWordTypeSize(
int wordType);
 
  117   int Parse() 
override;
 
  124   vtkGetMacro(Abort, 
int);
 
  125   vtkSetMacro(Abort, 
int);
 
  133   vtkGetMacro(Progress, 
float);
 
  134   vtkSetMacro(Progress, 
float);
 
  147   vtkGetMacro(AttributesEncoding, 
int);
 
  169   int Parse(
const char*) 
override;
 
  170   int Parse(
const char*, 
unsigned int) 
override;
 
  177   int CheckPrimaryAttributes();
 
  178   void FindAppendedDataPosition();
 
  179   int ParseBuffer(
const char* buffer, 
unsigned int count) 
override;
 
  184   void FreeAllElements();
 
  185   void PerformByteSwap(
void* 
data, 
size_t numWords, 
size_t wordSize);
 
  188   int ReadCompressionHeader();
 
  189   size_t FindBlockSize(vtkTypeUInt64 block);
 
  190   int ReadBlock(vtkTypeUInt64 block, 
unsigned char* buffer);
 
  191   unsigned char* ReadBlock(vtkTypeUInt64 block);
 
  192   size_t ReadUncompressedData(
 
  193     unsigned char* 
data, vtkTypeUInt64 startWord, 
size_t numWords, 
size_t wordSize);
 
  194   size_t ReadCompressedData(
 
  195     unsigned char* 
data, vtkTypeUInt64 startWord, 
size_t numWords, 
size_t wordSize);
 
  201   int ParseAsciiData(
int wordType);
 
  202   void FreeAsciiBuffer();
 
  205   void UpdateProgress(
float progress);
 
  
Parse XML to handle element tags and attributes.
virtual int ParsingComplete()
vtkTypeInt64 AppendedDataPosition
vtkInputStream * DataStream
#define VTK_ENCODING_NONE
size_t PartialLastBlockUncompressedSize
size_t BlockUncompressedSize
void CharacterDataHandler(const char *data, int length) override
If you need the text inside XMLElements, turn IgnoreCharacterData off.
vtkTypeInt64 * BlockStartOffsets
size_t AsciiDataBufferLength
vtkTypeInt64 AsciiDataPosition
vtkTypeInt64 GetAppendedDataPosition()
Returns the byte index of where appended data starts (if the file is using appended data).
vtkXMLDataElement ** OpenElements
unsigned int OpenElementsSize
vtkInputStream * InlineDataStream
size_t ReadAppendedData(vtkTypeInt64 offset, char *buffer, vtkTypeUInt64 startWord, size_t numWords)
virtual int ParseBuffer(const char *buffer, unsigned int count)
void AddCharacterData(const char *c, size_t length)
vtkXMLDataElement * RootElement
static vtkXMLParser * New()
a simple class to control print indentation
vtkInputStream * AppendedDataStream
Abstract interface for data compression classes.
Represents an XML element and those nested inside.
virtual int Parse()
Parse the XML input.
virtual void EndElement(const char *name)
unsigned char * AsciiDataBuffer
size_t * BlockCompressedSizes
virtual void StartElement(const char *name, const char **atts)
vtkDataCompressor * Compressor
#define VTK_ENCODING_UNKNOWN
size_t ReadInlineData(vtkXMLDataElement *element, int isAscii, char *buffer, vtkTypeUInt64 startWord, size_t numWords)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned int NumberOfOpenElements
virtual void CharacterDataHandler(const char *data, int length)
Used by vtkXMLReader to parse VTK XML files.