105 #ifndef vtkDelimitedTextReader_h
106 #define vtkDelimitedTextReader_h
108 #include "vtkIOInfovisModule.h"
135 vtkGetStringMacro(InputString);
137 vtkGetMacro(InputStringLength,
int);
140 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
166 vtkGetStringMacro(UnicodeCharacterSet);
167 vtkSetStringMacro(UnicodeCharacterSet);
188 vtkSetStringMacro(FieldDelimiterCharacters);
189 vtkGetStringMacro(FieldDelimiterCharacters);
205 vtkGetMacro(StringDelimiter,
char);
206 vtkSetMacro(StringDelimiter,
char);
216 vtkSetMacro(UseStringDelimiter,
bool);
217 vtkGetMacro(UseStringDelimiter,
bool);
218 vtkBooleanMacro(UseStringDelimiter,
bool);
226 vtkGetMacro(HaveHeaders,
bool);
227 vtkSetMacro(HaveHeaders,
bool);
236 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
237 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
238 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
256 vtkSetMacro(DetectNumericColumns,
bool);
257 vtkGetMacro(DetectNumericColumns,
bool);
258 vtkBooleanMacro(DetectNumericColumns,
bool);
267 vtkSetMacro(ForceDouble,
bool);
268 vtkGetMacro(ForceDouble,
bool);
269 vtkBooleanMacro(ForceDouble,
bool);
288 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
289 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
290 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
298 vtkSetMacro(DefaultIntegerValue,
int);
299 vtkGetMacro(DefaultIntegerValue,
int);
307 vtkSetMacro(DefaultDoubleValue,
double);
308 vtkGetMacro(DefaultDoubleValue,
double);
316 vtkSetStringMacro(PedigreeIdArrayName);
317 vtkGetStringMacro(PedigreeIdArrayName);
325 vtkSetMacro(GeneratePedigreeIds,
bool);
326 vtkGetMacro(GeneratePedigreeIds,
bool);
327 vtkBooleanMacro(GeneratePedigreeIds,
bool);
334 vtkSetMacro(OutputPedigreeIds,
bool);
335 vtkGetMacro(OutputPedigreeIds,
bool);
336 vtkBooleanMacro(OutputPedigreeIds,
bool);
345 vtkSetMacro(AddTabFieldDelimiter,
bool);
346 vtkGetMacro(AddTabFieldDelimiter,
bool);
347 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
363 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
364 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.
const char * GetUTF8StringDelimiters()
std::string UnicodeRecordDelimiters
static vtkDelimitedTextReader * New()
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
int ReadData(vtkTable *const output_table)
bool AddTabFieldDelimiter
vtkSetFilePathMacro(FileName)
Specifies the delimited text file to be loaded.
bool DetectNumericColumns
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
const char * GetUTF8RecordDelimiters()
Specify the character(s) that will be used to separate records.
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.