Fledge
An open source edge computing platform for industrial users
plugin.h
1 #ifndef _PLUGIN_H
2 #define _PLUGIN_H
3 /*
4  * Fledge storage service.
5  *
6  * Copyright (c) 2017 OSisoft, LLC
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 
13 #include <plugin_api.h>
14 
15 class PluginManager;
16 
20 class Plugin {
21 
22  public:
23  Plugin(PLUGIN_HANDLE handle);
24  ~Plugin();
25 
26  const PLUGIN_INFORMATION *getInfo();
27  PLUGIN_HANDLE getHandle() { return handle; }
28 
29  protected:
30  PLUGIN_HANDLE handle;
31  PluginManager *manager;
32  PLUGIN_INFORMATION *info;
33 };
34 
35 #endif
The manager for plugins.
Definition: plugin_manager.h:40
A generic representation of a plugin.
Definition: plugin.h:20
The plugin infiornation structure, used to return information from a plugin during the laod and confi...
Definition: plugin_api.h:23