63 #ifndef vtkDelimitedTextReader_h
64 #define vtkDelimitedTextReader_h
66 #include "vtkIOInfovisModule.h"
82 vtkGetStringMacro(FileName);
83 vtkSetStringMacro(FileName);
94 vtkGetStringMacro(InputString);
96 vtkGetMacro(InputStringLength,
int);
99 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
125 vtkGetStringMacro(UnicodeCharacterSet);
126 vtkSetStringMacro(UnicodeCharacterSet);
149 vtkSetStringMacro(FieldDelimiterCharacters);
150 vtkGetStringMacro(FieldDelimiterCharacters);
168 vtkGetMacro(StringDelimiter,
char);
169 vtkSetMacro(StringDelimiter,
char);
181 vtkSetMacro(UseStringDelimiter,
bool);
182 vtkGetMacro(UseStringDelimiter,
bool);
183 vtkBooleanMacro(UseStringDelimiter,
bool);
191 vtkGetMacro(HaveHeaders,
bool);
192 vtkSetMacro(HaveHeaders,
bool);
201 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
202 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
203 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
221 vtkSetMacro(DetectNumericColumns,
bool);
222 vtkGetMacro(DetectNumericColumns,
bool);
223 vtkBooleanMacro(DetectNumericColumns,
bool);
232 vtkSetMacro(ForceDouble,
bool);
233 vtkGetMacro(ForceDouble,
bool);
234 vtkBooleanMacro(ForceDouble,
bool);
253 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
254 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
255 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
263 vtkSetMacro(DefaultIntegerValue,
int);
264 vtkGetMacro(DefaultIntegerValue,
int);
272 vtkSetMacro(DefaultDoubleValue,
double);
273 vtkGetMacro(DefaultDoubleValue,
double);
281 vtkSetStringMacro(PedigreeIdArrayName);
282 vtkGetStringMacro(PedigreeIdArrayName);
290 vtkSetMacro(GeneratePedigreeIds,
bool);
291 vtkGetMacro(GeneratePedigreeIds,
bool);
292 vtkBooleanMacro(GeneratePedigreeIds,
bool);
299 vtkSetMacro(OutputPedigreeIds,
bool);
300 vtkGetMacro(OutputPedigreeIds,
bool);
301 vtkBooleanMacro(OutputPedigreeIds,
bool);
310 vtkSetMacro(AddTabFieldDelimiter,
bool);
311 vtkGetMacro(AddTabFieldDelimiter,
bool);
312 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
328 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
329 vtkGetMacro(ReplacementCharacter, vtkTypeUInt32);
reads in delimited ascii or unicode text files and outputs a vtkTable data structure.
vtkTypeUInt32 ReplacementCharacter
void SetInputString(const char *in, int len)
vtkUnicodeString GetUnicodeRecordDelimiters()
void SetUnicodeRecordDelimiters(const vtkUnicodeString &delimiters)
const char * GetUTF8StringDelimiters()
static vtkDelimitedTextReader * New()
vtkUnicodeString UnicodeWhitespace
char * FieldDelimiterCharacters
bool TrimWhitespacePriorToNumericConversion
vtkUnicodeString UnicodeRecordDelimiters
vtkUnicodeString UnicodeFieldDelimiters
~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.
vtkUnicodeString UnicodeStringDelimiters
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)
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.
void SetUnicodeFieldDelimiters(const vtkUnicodeString &delimiters)
vtkUnicodeString GetUnicodeStringDelimiters()
void SetUnicodeStringDelimiters(const vtkUnicodeString &delimiters)
vtkUnicodeString GetUnicodeFieldDelimiters()
int ReadData(vtkTable *const output_table)
bool AddTabFieldDelimiter
bool DetectNumericColumns
vtkUnicodeString UnicodeEscapeCharacter
void SetInputString(const vtkStdString &input)
const char * GetUTF8FieldDelimiters()
void SetUTF8FieldDelimiters(const char *delimiters)
char * PedigreeIdArrayName
char * UnicodeCharacterSet
const char * GetUTF8RecordDelimiters()
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.
String class that stores Unicode text.