dataload_csv.h
Go to the documentation of this file.
1 #ifndef DATALOAD_CSV_H
2 #define DATALOAD_CSV_H
3 
4 #include <QObject>
5 #include <QtPlugin>
7 
8 
9 class DataLoadCSV: public DataLoader
10 {
11  Q_OBJECT
12  Q_PLUGIN_METADATA(IID "com.icarustechnology.PlotJuggler.DataLoader" "../dataloader.json")
13  Q_INTERFACES(DataLoader)
14 
15 public:
16  DataLoadCSV();
17  virtual const std::vector<const char*>& compatibleFileExtensions() const override;
18 
19  virtual bool readDataFromFile(FileLoadInfo* fileload_info, PlotDataMapRef& destination) override;
20 
21  virtual ~DataLoadCSV();
22 
23  virtual const char* name() const override { return "DataLoad CSV"; }
24 
25  virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override;
26 
27  virtual bool xmlLoadState(const QDomElement &parent_element ) override;
28 
29 protected:
30  QSize parseHeader(QFile *file, std::vector<std::string> &ordered_names);
31 
32 private:
33  std::vector<const char*> _extensions;
34 
35  std::string _default_time_axis;
36 
37 
38 };
39 
40 #endif // DATALOAD_CSV_H
virtual bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
std::vector< const char * > _extensions
Definition: dataload_csv.h:33
virtual ~DataLoadCSV()
virtual const char * name() const override
Definition: dataload_csv.h:23
QSize parseHeader(QFile *file, std::vector< std::string > &ordered_names)
virtual bool readDataFromFile(FileLoadInfo *fileload_info, PlotDataMapRef &destination) override
virtual bool xmlLoadState(const QDomElement &parent_element) override
std::string _default_time_axis
Definition: dataload_csv.h:35
virtual const std::vector< const char * > & compatibleFileExtensions() const override


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17