59 #ifndef vtkDelimitedTextReader_h
60 #define vtkDelimitedTextReader_h
62 #include "vtkIOInfovisModule.h"
66 VTK_ABI_NAMESPACE_BEGIN
90 vtkGetStringMacro(InputString);
92 vtkGetMacro(InputStringLength,
int);
95 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
121 vtkGetStringMacro(UnicodeCharacterSet);
122 vtkSetStringMacro(UnicodeCharacterSet);
143 vtkSetStringMacro(FieldDelimiterCharacters);
144 vtkGetStringMacro(FieldDelimiterCharacters);
160 vtkGetMacro(StringDelimiter,
char);
161 vtkSetMacro(StringDelimiter,
char);
171 vtkSetMacro(UseStringDelimiter,
bool);
172 vtkGetMacro(UseStringDelimiter,
bool);
173 vtkBooleanMacro(UseStringDelimiter,
bool);
181 vtkGetMacro(HaveHeaders,
bool);
182 vtkSetMacro(HaveHeaders,
bool);
191 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
192 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
193 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
211 vtkSetMacro(DetectNumericColumns,
bool);
212 vtkGetMacro(DetectNumericColumns,
bool);
213 vtkBooleanMacro(DetectNumericColumns,
bool);
222 vtkSetMacro(ForceDouble,
bool);
223 vtkGetMacro(ForceDouble,
bool);
224 vtkBooleanMacro(ForceDouble,
bool);
243 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
244 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
245 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
253 vtkSetMacro(DefaultIntegerValue,
int);
254 vtkGetMacro(DefaultIntegerValue,
int);
262 vtkSetMacro(DefaultDoubleValue,
double);
263 vtkGetMacro(DefaultDoubleValue,
double);
271 vtkSetStringMacro(PedigreeIdArrayName);
272 vtkGetStringMacro(PedigreeIdArrayName);
280 vtkSetMacro(GeneratePedigreeIds,
bool);
281 vtkGetMacro(GeneratePedigreeIds,
bool);
282 vtkBooleanMacro(GeneratePedigreeIds,
bool);
289 vtkSetMacro(OutputPedigreeIds,
bool);
290 vtkGetMacro(OutputPedigreeIds,
bool);
291 vtkBooleanMacro(OutputPedigreeIds,
bool);
300 vtkSetMacro(AddTabFieldDelimiter,
bool);
301 vtkGetMacro(AddTabFieldDelimiter,
bool);
302 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
318 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
319 vtkGetMacro(ReplacementCharacter, vtkTypeUInt32);
364 VTK_ABI_NAMESPACE_END
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
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
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.