66 #ifndef vtkDelimitedTextReader_h
67 #define vtkDelimitedTextReader_h
69 #include "vtkIOInfovisModule.h"
84 vtkGetFilePathMacro(FileName);
85 vtkSetFilePathMacro(FileName);
95 void SetInputString(
const char* in);
96 vtkGetStringMacro(InputString);
97 void SetInputString(
const char* in,
int len);
98 vtkGetMacro(InputStringLength,
int);
101 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
127 vtkGetStringMacro(UnicodeCharacterSet);
128 vtkSetStringMacro(UnicodeCharacterSet);
137 void SetUTF8RecordDelimiters(
const char* delimiters);
138 const char* GetUTF8RecordDelimiters();
149 vtkSetStringMacro(FieldDelimiterCharacters);
150 vtkGetStringMacro(FieldDelimiterCharacters);
153 void SetUTF8FieldDelimiters(
const char* delimiters);
154 const char* GetUTF8FieldDelimiters();
166 vtkGetMacro(StringDelimiter,
char);
167 vtkSetMacro(StringDelimiter,
char);
170 void SetUTF8StringDelimiters(
const char* delimiters);
171 const char* GetUTF8StringDelimiters();
177 vtkSetMacro(UseStringDelimiter,
bool);
178 vtkGetMacro(UseStringDelimiter,
bool);
179 vtkBooleanMacro(UseStringDelimiter,
bool);
187 vtkGetMacro(HaveHeaders,
bool);
188 vtkSetMacro(HaveHeaders,
bool);
197 vtkSetMacro(MergeConsecutiveDelimiters,
bool);
198 vtkGetMacro(MergeConsecutiveDelimiters,
bool);
199 vtkBooleanMacro(MergeConsecutiveDelimiters,
bool);
217 vtkSetMacro(DetectNumericColumns,
bool);
218 vtkGetMacro(DetectNumericColumns,
bool);
219 vtkBooleanMacro(DetectNumericColumns,
bool);
228 vtkSetMacro(ForceDouble,
bool);
229 vtkGetMacro(ForceDouble,
bool);
230 vtkBooleanMacro(ForceDouble,
bool);
249 vtkSetMacro(TrimWhitespacePriorToNumericConversion,
bool);
250 vtkGetMacro(TrimWhitespacePriorToNumericConversion,
bool);
251 vtkBooleanMacro(TrimWhitespacePriorToNumericConversion,
bool);
259 vtkSetMacro(DefaultIntegerValue,
int);
260 vtkGetMacro(DefaultIntegerValue,
int);
268 vtkSetMacro(DefaultDoubleValue,
double);
269 vtkGetMacro(DefaultDoubleValue,
double);
277 vtkSetStringMacro(PedigreeIdArrayName);
278 vtkGetStringMacro(PedigreeIdArrayName);
286 vtkSetMacro(GeneratePedigreeIds,
bool);
287 vtkGetMacro(GeneratePedigreeIds,
bool);
288 vtkBooleanMacro(GeneratePedigreeIds,
bool);
295 vtkSetMacro(OutputPedigreeIds,
bool);
296 vtkGetMacro(OutputPedigreeIds,
bool);
297 vtkBooleanMacro(OutputPedigreeIds,
bool);
306 vtkSetMacro(AddTabFieldDelimiter,
bool);
307 vtkGetMacro(AddTabFieldDelimiter,
bool);
308 vtkBooleanMacro(AddTabFieldDelimiter,
bool);
324 vtkSetMacro(ReplacementCharacter, vtkTypeUInt32);
325 vtkGetMacro(ReplacementCharacter, vtkTypeUInt32);
335 int ReadData(
vtkTable*
const output_table);
void SetInputString(const vtkStdString &input)
Specify the InputString for use when reading from a character array.
Wrapper around std::string to keep symbols short.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
std::string UnicodeEscapeCharacter
bool MergeConsecutiveDelimiters
bool AddTabFieldDelimiter
std::string UnicodeStringDelimiters
bool TrimWhitespacePriorToNumericConversion
char * PedigreeIdArrayName
vtkTypeUInt32 ReplacementCharacter
std::string UnicodeFieldDelimiters
reads in delimited ascii or unicode text files and outputs a vtkTable data structure.
a simple class to control print indentation
bool DetectNumericColumns
std::string UnicodeRecordDelimiters
vtkTypeBool ReadFromInputString
double DefaultDoubleValue
A table, which contains similar-typed columns of data.
char * FieldDelimiterCharacters
char * UnicodeCharacterSet
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
std::string UnicodeWhitespace