34 const std::string& recordDelimiters,
const std::string& fieldDelimiters,
35 const std::string& stringDelimiters,
const std::string& whitespace,
const std::string& comments,
36 const std::string& escape,
bool haveHeaders,
bool mergConsDelimiters,
bool useStringDelimiter,
37 bool detectNumericColumns,
bool forceDouble,
int defaultInt,
double defaultDouble,
114 struct RecordsCounter
133 bool AcceptingField();
136 bool FirstAccepted();
148 RecordsCounter RecordsCount;
150 std::set<vtkTypeUInt32> RecordDelimiters;
151 std::set<vtkTypeUInt32> FieldDelimiters;
152 std::set<vtkTypeUInt32> StringDelimiters;
153 std::set<vtkTypeUInt32> Whitespace;
154 std::set<vtkTypeUInt32> CommentChar = {
'#' };
155 std::set<vtkTypeUInt32> EscapeDelimiter;
157 bool HaveHeaders =
false;
158 bool WhiteSpaceOnlyString =
true;
159 vtkTable* OutputTable =
nullptr;
161 std::string CurrentField;
162 bool RecordAdjacent =
true;
163 bool MergeConsDelims =
false;
164 bool ProcessEscapeSequence =
false;
165 bool UseStringDelimiter =
true;
166 bool DetectNumericColumns =
false;
167 bool ForceDouble =
false;
168 int DefaultIntegerValue = 0;
169 double DefaultDoubleValue = 0.;
170 vtkTypeUInt32 WithinString = 0;
171 bool WithinComment =
false;
~vtkDelimitedTextCodecIteratorPrivate() override
vtkDelimitedTextCodecIteratorPrivate(vtkIdType startRecords, vtkIdType maxRecords, const std::string &recordDelimiters, const std::string &fieldDelimiters, const std::string &stringDelimiters, const std::string &whitespace, const std::string &comments, const std::string &escape, bool haveHeaders, bool mergConsDelimiters, bool useStringDelimiter, bool detectNumericColumns, bool forceDouble, int defaultInt, double defaultDouble, vtkTable *outputTable)
void ReachedEndOfInput()
Handle windows files that do not have a carriage return line feed on the last line of the file.
vtkDelimitedTextCodecIteratorPrivate & operator=(const vtkTypeUInt32 &value) override
Entry point to parse text.
a base class that any output iterators need to derive from to use the first signature of to_unicode.