dataloader_base.h
Go to the documentation of this file.
1 #ifndef DATALOAD_TEMPLATE_H
2 #define DATALOAD_TEMPLATE_H
3 
4 #include <QFile>
5 
6 #include <functional>
7 #include "PlotJuggler/plotdata.h"
10 
11 namespace PJ {
12 
14 {
15  QString filename;
16  QString prefix;
17  QStringList selected_datasources;
18  QDomDocument plugin_config;
19 };
20 
22 {
23 public:
25  {
26  }
27 
28  virtual const std::vector<const char*>& compatibleFileExtensions() const = 0;
29 
30  virtual bool readDataFromFile(FileLoadInfo* fileload_info, PlotDataMapRef& destination) = 0;
31 
32  virtual ~DataLoader()
33  {
34  }
35 
36 protected:
37 };
38 
39 using DataLoaderPtr = std::shared_ptr<DataLoader>;
40 
41 }
42 
43 QT_BEGIN_NAMESPACE
44 #define DataRead_iid "facontidavide.PlotJuggler3.DataLoader"
45 Q_DECLARE_INTERFACE(PJ::DataLoader, DataRead_iid)
46 QT_END_NAMESPACE
47 
48 #endif
#define DataRead_iid
QStringList selected_datasources
QDomDocument plugin_config
virtual ~DataLoader()
std::shared_ptr< DataLoader > DataLoaderPtr


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:47:34