87 vtkGetStringMacro(InputString);
89 vtkGetMacro(InputStringLength,
int);
92 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
118 vtkGetStringMacro(UnicodeCharacterSet);
119 vtkSetStringMacro(UnicodeCharacterSet);
140 vtkSetStringMacro(FieldDelimiterCharacters);
141 vtkGetStringMacro(FieldDelimiterCharacters);
157 vtkGetMacro(StringDelimiter,
char);
158 vtkSetMacro(StringDelimiter,
char);
168 vtkSetMacro(UseStringDelimiter,
bool);
169 vtkGetMacro(UseStringDelimiter,
bool);
170 vtkBooleanMacro(UseStringDelimiter,
bool);
178 vtkGetMacro(HaveHeaders,
bool);
179 vtkSetMacro(HaveHeaders,
bool);
188 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
189 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
190 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
212 vtkSetMacro(DetectNumericColumns,
bool);
213 vtkGetMacro(DetectNumericColumns,
bool);
214 vtkBooleanMacro(DetectNumericColumns,
bool);
223 vtkSetMacro(ForceDouble,
bool);
224 vtkGetMacro(ForceDouble,
bool);
225 vtkBooleanMacro(ForceDouble,
bool);
244 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
245 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
246 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
254 vtkSetMacro(DefaultIntegerValue,
int);
255 vtkGetMacro(DefaultIntegerValue,
int);
263 vtkSetMacro(DefaultDoubleValue,
double);
264 vtkGetMacro(DefaultDoubleValue,
double);
272 vtkSetStringMacro(PedigreeIdArrayName);
273 vtkGetStringMacro(PedigreeIdArrayName);
281 vtkSetMacro(GeneratePedigreeIds,
bool);
282 vtkGetMacro(GeneratePedigreeIds,
bool);
283 vtkBooleanMacro(GeneratePedigreeIds,
bool);
290 vtkSetMacro(OutputPedigreeIds,
bool);
291 vtkGetMacro(OutputPedigreeIds,
bool);
292 vtkBooleanMacro(OutputPedigreeIds,
bool);
301 vtkSetMacro(AddTabFieldDelimiter,
bool);
302 vtkGetMacro(AddTabFieldDelimiter,
bool);
303 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
319 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
320 vtkGetMacro(ReplacementCharacter, vtkTypeUInt32);
332 char* FileName =
nullptr;
334 char* InputString =
nullptr;
335 int InputStringLength = 0;
336 char* UnicodeCharacterSet =
nullptr;
338 std::string UnicodeRecordDelimiters =
"\r\n";
339 std::string UnicodeFieldDelimiters =
",";
340 std::string UnicodeStringDelimiters =
"\"";
341 std::string UnicodeWhitespace =
" \t\r\n\v\f";
342 std::string UnicodeEscapeCharacter =
"\\";
343 bool DetectNumericColumns =
false;
344 bool ForceDouble =
false;
345 bool TrimWhitespacePriorToNumericConversion =
false;
346 int DefaultIntegerValue = 0;
347 double DefaultDoubleValue = 0.;
348 char* FieldDelimiterCharacters =
nullptr;
349 char StringDelimiter =
'"';
350 bool UseStringDelimiter =
true;
351 bool HaveHeaders =
false;
352 bool MergeConsecutiveDelimiters =
false;
353 char* PedigreeIdArrayName =
nullptr;
354 bool GeneratePedigreeIds =
true;
355 bool OutputPedigreeIds =
false;
356 bool AddTabFieldDelimiter =
false;
358 vtkTypeUInt32 ReplacementCharacter =
'x';
365 std::unique_ptr<std::istream> OpenStream();
371 void ReadBOM(std::istream* stream);
377 vtkTextCodec* CreateTextCodec(std::istream* input_stream);
reads in delimited ascii or unicode text files and outputs a vtkTable data structure.
void SetInputString(const char *in, int len)
Specify the InputString for use when reading from a character array.
int ReadData(vtkTable *output_table)
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)
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.
const char * GetUTF8StringDelimiters()
vtkSetFilePathMacro(FileName)
Specifies the delimited text file to be loaded.
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.
const char * GetUTF8FieldDelimiters()
void SetUTF8FieldDelimiters(const char *delimiters)
Virtual class to act as an interface for all text codecs.