dataload_parquet.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QObject>
4 #include <QtPlugin>
6 #include "ui_dataload_parquet.h"
7 
8 #define QT_NO_KEYWORDS
9 #undef signals
10 #include <parquet/stream_reader.h>
11 
12 using namespace PJ;
13 
15 {
16  Q_OBJECT
17  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.DataLoader")
18  Q_INTERFACES(PJ::DataLoader)
19 
20 public:
22  virtual const std::vector<const char*>& compatibleFileExtensions() const override;
23 
24  virtual bool readDataFromFile(PJ::FileLoadInfo* fileload_info,
25  PlotDataMapRef& destination) override;
26 
27  ~DataLoadParquet() override;
28 
29  virtual const char* name() const override
30  {
31  return "DataLoad Parquet";
32  }
33 
34  QString selectedSeries() const;
35 
36  virtual bool xmlSaveState(QDomDocument& doc,
37  QDomElement& parent_element) const override;
38 
39  virtual bool xmlLoadState(const QDomElement& parent_element) override;
40 
41 private:
42  Ui::DialogParquet* ui = nullptr;
43 
44  std::vector<const char*> _extensions;
45 
47 
48  std::unique_ptr<parquet::ParquetFileReader> parquet_reader_;
49 
50  QDialog* _dialog;
51 };
DataLoadParquet::parquet_reader_
std::unique_ptr< parquet::ParquetFileReader > parquet_reader_
Definition: dataload_parquet.h:48
DataLoadParquet::name
virtual const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: dataload_parquet.h:29
DataLoadParquet
Definition: dataload_parquet.h:14
PJ::FileLoadInfo
Definition: dataloader_base.h:18
DataLoadParquet::_default_time_axis
QString _default_time_axis
Definition: dataload_parquet.h:46
dataloader_base.h
DataLoadParquet::_extensions
std::vector< const char * > _extensions
Definition: dataload_parquet.h:44
PJ::DataLoader
The DataLoader plugin type is used to load files.
Definition: dataloader_base.h:34
PJ
Definition: dataloader_base.h:16
DataLoadParquet::_dialog
QDialog * _dialog
Definition: dataload_parquet.h:50
PJ::PlotDataMapRef
Definition: plotdata.h:34


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44