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
#include <QFile>
5
6
#include <functional>
7
#include "
PlotJuggler/plotdata.h
"
8
#include "
PlotJuggler/pj_plugin.h
"
9
#include "
PlotJuggler/messageparser_base.h
"
10
11
namespace
PJ
{
12
13
struct
FileLoadInfo
14
{
15
QString
filename
;
16
QString
prefix
;
17
QStringList
selected_datasources
;
18
QDomDocument
plugin_config
;
19
};
20
21
class
DataLoader
:
public
PlotJugglerPlugin
22
{
23
public
:
24
DataLoader
()
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
DataRead_iid
#define DataRead_iid
Definition:
dataloader_base.h:44
plotdata.h
PJ::DataLoader
Definition:
dataloader_base.h:21
PJ::FileLoadInfo::selected_datasources
QStringList selected_datasources
Definition:
dataloader_base.h:17
PJ::FileLoadInfo::filename
QString filename
Definition:
dataloader_base.h:15
PJ::FileLoadInfo
Definition:
dataloader_base.h:13
pj_plugin.h
PJ::FileLoadInfo::prefix
QString prefix
Definition:
dataloader_base.h:16
PJ
Definition:
dataloader_base.h:11
PJ::DataLoader::DataLoader
DataLoader()
Definition:
dataloader_base.h:24
messageparser_base.h
PJ::FileLoadInfo::plugin_config
QDomDocument plugin_config
Definition:
dataloader_base.h:18
PJ::DataLoader::~DataLoader
virtual ~DataLoader()
Definition:
dataloader_base.h:32
PJ::PlotDataMapRef
Definition:
plotdata.h:493
PJ::DataLoaderPtr
std::shared_ptr< DataLoader > DataLoaderPtr
Definition:
dataloader_base.h:39
PJ::PlotJugglerPlugin
Definition:
pj_plugin.h:12
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:47:34