-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleLoaderPlugin.h
More file actions
44 lines (31 loc) · 1.09 KB
/
ExampleLoaderPlugin.h
File metadata and controls
44 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include <LoaderPlugin.h>
using namespace mv::plugin;
// =============================================================================
// Loader
// =============================================================================
class ExampleLoaderPlugin : public LoaderPlugin
{
Q_OBJECT
public:
ExampleLoaderPlugin(const PluginFactory* factory);
~ExampleLoaderPlugin(void) override;
void init() override;
void loadData() Q_DECL_OVERRIDE;
private:
QString _dataSetName;
};
// =============================================================================
// Factory
// =============================================================================
class ExampleLoaderPluginFactory : public LoaderPluginFactory
{
Q_INTERFACES(mv::plugin::LoaderPluginFactory mv::plugin::PluginFactory)
Q_OBJECT
Q_PLUGIN_METADATA(IID "studio.manivault.ExampleLoaderPlugin"
FILE "PluginInfo.json")
public:
ExampleLoaderPluginFactory();
ExampleLoaderPlugin* produce() override;
mv::DataTypes supportedDataTypes() const override;
};