plotjuggler_plugins
DataLoadMCAP
dataload_mcap.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <optional>
4
#include <QObject>
5
#include <QtPlugin>
6
#include <QStandardItemModel>
7
#include "
PlotJuggler/dataloader_base.h
"
8
#include "
dataload_params.h
"
9
10
using namespace
PJ
;
11
12
class
DataLoadMCAP
:
public
DataLoader
13
{
14
Q_OBJECT
15
Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.DataLoader"
)
16
Q_INTERFACES(
PJ::DataLoader
)
17
18
public
:
19
DataLoadMCAP
();
20
21
virtual
const
std::vector<const char*>& compatibleFileExtensions()
const override
;
22
23
virtual
bool
readDataFromFile(
PJ::FileLoadInfo
* fileload_info,
24
PlotDataMapRef
& destination)
override
;
25
26
virtual
~
DataLoadMCAP
()
override
;
27
28
virtual
const
char
*
name
()
const override
29
{
30
return
"DataLoad MCAP"
;
31
}
32
33
bool
xmlSaveState(QDomDocument& doc, QDomElement& parent_element)
const override
;
34
35
bool
xmlLoadState(
const
QDomElement& parent_element)
override
;
36
37
private
:
38
std::optional<mcap::LoadParams>
_dialog_parameters
;
39
};
PJ::FileLoadInfo
Definition:
dataloader_base.h:18
DataLoadMCAP::name
virtual const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition:
dataload_mcap.h:28
dataloader_base.h
PJ::DataLoader
The DataLoader plugin type is used to load files.
Definition:
dataloader_base.h:34
DataLoadMCAP
Definition:
dataload_mcap.h:12
PJ
Definition:
dataloader_base.h:16
PJ::PlotDataMapRef
Definition:
plotdata.h:34
dataload_params.h
DataLoadMCAP::_dialog_parameters
std::optional< mcap::LoadParams > _dialog_parameters
Definition:
dataload_mcap.h:38
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44