Hello,
i would like store a single plugin for every dll.
All plugin have a same interface.
For example suppose that every plugin (dll) have two C style function:
void mousePressed(int x, int y, OpenglContex * context)
void mouseMove(int x, int y, OpenglContex * context)
I would like remap c function extract from every dll on different class Plugin1 and Plugin2
class Plugin
{
public:
Plugin() {};
virtual void mousePressEvent(GLWidget* widget, QMouseEvent *event)=0;
virtual void mouseMoveEvent(GLWidget* widget, QMouseEvent *event)=0; ....
};
and other subclass as
class Plugin1: public Plugin
{
// remap on dll 1
}
class Plugin2: public Plugin
{
// remap on dll2
}
Any idea how to solve my problem?
It's possibile declare function pointer in the Plugin1 or Plugin2 class and call them from method?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 113 |
Nodes: | 8 (1 / 7) |
Uptime: | 46:55:45 |
Calls: | 2,499 |
Calls today: | 1 |
Files: | 8,655 |
Messages: | 1,908,952 |