63#ifndef vtkDelimitedTextReader_h
64#define vtkDelimitedTextReader_h
66#include "vtkIOInfovisModule.h"
93 vtkGetStringMacro(InputString);
95 vtkGetMacro(InputStringLength,
int);
98 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
124 vtkGetStringMacro(UnicodeCharacterSet);
125 vtkSetStringMacro(UnicodeCharacterSet);
146 vtkSetStringMacro(FieldDelimiterCharacters);
147 vtkGetStringMacro(FieldDelimiterCharacters);
163 vtkGetMacro(StringDelimiter,
char);
164 vtkSetMacro(StringDelimiter,
char);
174 vtkSetMacro(UseStringDelimiter,
bool);
175 vtkGetMacro(UseStringDelimiter,
bool);
176 vtkBooleanMacro(UseStringDelimiter,
bool);
184 vtkGetMacro(HaveHeaders,
bool);
185 vtkSetMacro(HaveHeaders,
bool);
194 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
195 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
196 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
214 vtkSetMacro(DetectNumericColumns,
bool);
215 vtkGetMacro(DetectNumericColumns,
bool);
216 vtkBooleanMacro(DetectNumericColumns,
bool);
225 vtkSetMacro(ForceDouble,
bool);
226 vtkGetMacro(ForceDouble,
bool);
227 vtkBooleanMacro(ForceDouble,
bool);
246 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
247 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
248 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
256 vtkSetMacro(DefaultIntegerValue,
int);
257 vtkGetMacro(DefaultIntegerValue,
int);
265 vtkSetMacro(DefaultDoubleValue,
double);
266 vtkGetMacro(DefaultDoubleValue,
double);
274 vtkSetStringMacro(PedigreeIdArrayName);
275 vtkGetStringMacro(PedigreeIdArrayName);
283 vtkSetMacro(GeneratePedigreeIds,
bool);
284 vtkGetMacro(GeneratePedigreeIds,
bool);
285 vtkBooleanMacro(GeneratePedigreeIds,
bool);
292 vtkSetMacro(OutputPedigreeIds,
bool);
293 vtkGetMacro(OutputPedigreeIds,
bool);
294 vtkBooleanMacro(OutputPedigreeIds,
bool);
303 vtkSetMacro(AddTabFieldDelimiter,
bool);
304 vtkGetMacro(AddTabFieldDelimiter,
bool);
305 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
321 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
322 vtkGetMacro(ReplacementCharacter, vtkTypeUInt32);
reads in delimited ascii or unicode text files and outputs a vtkTable data structure.
std::string UnicodeEscapeCharacter
vtkTypeUInt32 ReplacementCharacter
void SetInputString(const char *in, int len)
Specify the InputString for use when reading from a character array.
std::string UnicodeRecordDelimiters
char * FieldDelimiterCharacters
bool TrimWhitespacePriorToNumericConversion
~vtkDelimitedTextReader() override
void SetUTF8RecordDelimiters(const char *delimiters)
Specify the character(s) that will be used to separate records.
vtkStdString GetLastError()
Returns a human-readable description of the most recent error, if any.
void SetInputString(const char *in)
Specify the InputString for use when reading from a character array.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetUTF8StringDelimiters(const char *delimiters)
std::string UnicodeWhitespace
double DefaultDoubleValue
vtkTypeBool ReadFromInputString
bool MergeConsecutiveDelimiters
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Specifies the delimited text file to be loaded.
std::string UnicodeFieldDelimiters
const char * GetUTF8StringDelimiters()
int ReadData(vtkTable *const output_table)
bool AddTabFieldDelimiter
vtkSetFilePathMacro(FileName)
Specifies the delimited text file to be loaded.
bool DetectNumericColumns
static vtkDelimitedTextReader * New()
const char * GetUTF8RecordDelimiters()
Specify the character(s) that will be used to separate records.
void SetInputString(const vtkStdString &input)
Specify the InputString for use when reading from a character array.
std::string UnicodeStringDelimiters
const char * GetUTF8FieldDelimiters()
void SetUTF8FieldDelimiters(const char *delimiters)
char * PedigreeIdArrayName
char * UnicodeCharacterSet
a simple class to control print indentation
Wrapper around std::string to keep symbols short.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.