63 #ifndef vtkDelimitedTextReader_h 64 #define vtkDelimitedTextReader_h 66 #include "vtkIOInfovisModule.h" 82 vtkGetStringMacro(FileName);
83 vtkSetStringMacro(FileName);
93 void SetInputString(
const char* in);
94 vtkGetStringMacro(InputString);
95 void SetInputString(
const char* in,
int len);
96 vtkGetMacro(InputStringLength,
int);
99 this->SetInputString(input.c_str(),
static_cast<int>(input.length()));
125 vtkGetStringMacro(UnicodeCharacterSet);
126 vtkSetStringMacro(UnicodeCharacterSet);
135 void SetUTF8RecordDelimiters(
const char* delimiters);
136 const char* GetUTF8RecordDelimiters();
149 vtkSetStringMacro(FieldDelimiterCharacters);
150 vtkGetStringMacro(FieldDelimiterCharacters);
153 void SetUTF8FieldDelimiters(
const char* delimiters);
154 const char* GetUTF8FieldDelimiters();
168 vtkGetMacro(StringDelimiter,
char);
169 vtkSetMacro(StringDelimiter,
char);
172 void SetUTF8StringDelimiters(
const char* delimiters);
173 const char* GetUTF8StringDelimiters();
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);
339 int ReadData(
vtkTable*
const output_table);
void SetInputString(const vtkStdString &input)
Specify the InputString for use when reading from a character array.
vtkUnicodeString UnicodeRecordDelimiters
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()
vtkUnicodeString UnicodeStringDelimiters
bool MergeConsecutiveDelimiters
bool AddTabFieldDelimiter
bool TrimWhitespacePriorToNumericConversion
char * PedigreeIdArrayName
vtkTypeUInt32 ReplacementCharacter
reads in delimited ascii or unicode text files and outputs a vtkTable data structure.
a simple class to control print indentation
bool DetectNumericColumns
vtkTypeBool ReadFromInputString
vtkUnicodeString UnicodeEscapeCharacter
double DefaultDoubleValue
A table, which contains similar-typed columns of data.
vtkUnicodeString UnicodeWhitespace
char * FieldDelimiterCharacters
char * UnicodeCharacterSet
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkUnicodeString UnicodeFieldDelimiters
Superclass for algorithms that produce only vtkTables as output.
String class that stores Unicode text.