pqDelimitedTextParser.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqDelimitedTextParser_h
6 #define pqDelimitedTextParser_h
7 
8 #include "pqWidgetsModule.h"
9 #include <QObject>
10 
11 class QIODevice;
12 
27 {
28  Q_OBJECT
29 
30 public:
31  enum SeriesT
32  {
36  COLUMN_SERIES
37  };
38 
43  pqDelimitedTextParser(SeriesT series, char delimiter);
44 
48  void parse(const QString& path);
49 
50 Q_SIGNALS:
54  void startParsing();
58  void parseSeries(const QStringList&);
62  void finishParsing();
63 
64 private:
65  const SeriesT Series;
66  const char Delimiter;
67 
68  void parseColumns(QIODevice& stream);
69 };
70 
71 #endif
Parses a delimited text file (e.g.
#define PQWIDGETS_EXPORT