vtkDelimitedTextReader Class Reference

#include <vtkDelimitedTextReader.h>


Detailed Description

reads in delimited ascii or unicode text files and outputs a vtkTable data structure.

vtkDelimitedTextReader is an interface for pulling in data from a flat, delimited ascii or unicode text file (delimiter can be any character).

The behavior of the reader with respect to ascii or unicode input is controlled by the SetUnicodeCharacterSet() method. By default (without calling SetUnicodeCharacterSet()), the reader will expect to read ascii text and will output vtkStdString columns. Use the Set and Get methods to set delimiters that do not contain UTF8 in the name when operating the reader in default ascii mode. If the SetUnicodeCharacterSet() method is called, the reader will output vtkUnicodeString columns in the output table. In addition, it is necessary to use the Set and Get methods that contain UTF8 in the name to specify delimiters when operating in unicode mode.

This class emits ProgressEvent for every 100 lines it reads.

Thanks:
Thanks to Andy Wilson, Brian Wylie, Tim Shead, and Thomas Otahal from Sandia National Laboratories for implementing this class.
Warning:
This reader assumes that the first line in the file (whether that's headers or the first document) contains at least as many fields as any other line in the file. const char* GetUTF8RecordDelimiters(); BTX vtkUnicodeString GetUnicodeRecordDelimiters(); ETX const char* GetUTF8FieldDelimiters(); BTX vtkUnicodeString GetUnicodeFieldDelimiters(); ETX const char* GetUTF8StringDelimiters(); BTX vtkUnicodeString GetUnicodeStringDelimiters(); ETX
BTX void operator=(const vtkDelimitedTextReader&); // Not implemented ETX

Examples:
vtkDelimitedTextReader (Examples)
Tests:
vtkDelimitedTextReader (Tests)

The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:21:57 2010 for VTK by  doxygen 1.5.6