Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
PlotJuggler
dataloader_base.h
Go to the documentation of this file.
1
#ifndef DATALOAD_TEMPLATE_H
2
#define DATALOAD_TEMPLATE_H
3
4
5
#include <QFile>
6
7
#include <functional>
8
#include "
PlotJuggler/plotdata.h
"
9
#include "
PlotJuggler/pj_plugin.h
"
10
#include "
PlotJuggler/messageparser_base.h
"
11
12
13
struct
FileLoadInfo
14
{
15
QString
filename
;
16
QString
prefix
;
17
QStringList
selected_datasources
;
18
QDomDocument
plugin_config
;
19
};
20
21
22
class
DataLoader
:
public
PlotJugglerPlugin
23
{
24
25
public
:
26
DataLoader
(){}
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
protected
:
35
36
37
};
38
39
QT_BEGIN_NAMESPACE
40
41
#define DataRead_iid "com.icarustechnology.PlotJuggler.DataLoader"
42
43
Q_DECLARE_INTERFACE(
DataLoader
,
DataRead_iid
)
44
45
QT_END_NAMESPACE
46
47
48
#endif
49
DataLoader
Definition:
dataloader_base.h:22
DataRead_iid
#define DataRead_iid
Definition:
dataloader_base.h:41
FileLoadInfo::prefix
QString prefix
Definition:
dataloader_base.h:16
PlotDataMapRef
Definition:
plotdata.h:143
DataLoader::DataLoader
DataLoader()
Definition:
dataloader_base.h:26
FileLoadInfo::filename
QString filename
Definition:
dataloader_base.h:15
plotdata.h
DataLoader::~DataLoader
virtual ~DataLoader()
Definition:
dataloader_base.h:32
pj_plugin.h
FileLoadInfo
Definition:
dataloader_base.h:13
FileLoadInfo::selected_datasources
QStringList selected_datasources
Definition:
dataloader_base.h:17
messageparser_base.h
PlotJugglerPlugin
Definition:
pj_plugin.h:9
FileLoadInfo::plugin_config
QDomDocument plugin_config
Definition:
dataloader_base.h:18
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17