50#ifndef vtkDelimitedTextReader_h
51#define vtkDelimitedTextReader_h
53#include "vtkIOInfovisModule.h"
57VTK_ABI_NAMESPACE_BEGIN
81 vtkGetStringMacro(InputString);
83 vtkGetMacro(InputStringLength,
int);
86 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
112 vtkGetStringMacro(UnicodeCharacterSet);
113 vtkSetStringMacro(UnicodeCharacterSet);
134 vtkSetStringMacro(FieldDelimiterCharacters);
135 vtkGetStringMacro(FieldDelimiterCharacters);
151 vtkGetMacro(StringDelimiter,
char);
152 vtkSetMacro(StringDelimiter,
char);
162 vtkSetMacro(UseStringDelimiter,
bool);
163 vtkGetMacro(UseStringDelimiter,
bool);
164 vtkBooleanMacro(UseStringDelimiter,
bool);
172 vtkGetMacro(HaveHeaders,
bool);
173 vtkSetMacro(HaveHeaders,
bool);
182 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
183 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
184 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
202 vtkSetMacro(DetectNumericColumns,
bool);
203 vtkGetMacro(DetectNumericColumns,
bool);
204 vtkBooleanMacro(DetectNumericColumns,
bool);
213 vtkSetMacro(ForceDouble,
bool);
214 vtkGetMacro(ForceDouble,
bool);
215 vtkBooleanMacro(ForceDouble,
bool);
234 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
235 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
236 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
244 vtkSetMacro(DefaultIntegerValue,
int);
245 vtkGetMacro(DefaultIntegerValue,
int);
253 vtkSetMacro(DefaultDoubleValue,
double);
254 vtkGetMacro(DefaultDoubleValue,
double);
262 vtkSetStringMacro(PedigreeIdArrayName);
263 vtkGetStringMacro(PedigreeIdArrayName);
271 vtkSetMacro(GeneratePedigreeIds,
bool);
272 vtkGetMacro(GeneratePedigreeIds,
bool);
273 vtkBooleanMacro(GeneratePedigreeIds,
bool);
280 vtkSetMacro(OutputPedigreeIds,
bool);
281 vtkGetMacro(OutputPedigreeIds,
bool);
282 vtkBooleanMacro(OutputPedigreeIds,
bool);
291 vtkSetMacro(AddTabFieldDelimiter,
bool);
292 vtkGetMacro(AddTabFieldDelimiter,
bool);
293 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
309 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
310 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
int ReadData(vtkTable *output_table)
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()
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.