Hi buddies,
I have a project that I need to be plugin based. I have never done that before and I have intermediate C++ knowledge. I have googled and found a lot of links including this one. It is helpful and I don't know if I understand well.
Here is what I want to start with, Create application that does math (i.e simple calculator). The application does formatting and printing and the plugins does the actual math. the first thing I need is for someone to correct me if I'm wrong in my thinking below:
1. I have to create Abstaract plug in interface class IPlugin with methods:
getPluginName, loadPlugin unloadPlugin and the dataProcessor. This will be implemented by each plugin.
2. create class in the host IHost that checks the plugins if are valid and loads them with methods getPluginList, loadPluginsMethods, cleanPluginOnExit. this will only be implemented by the host.
am i right?
I will start coding once I get it right. Thanks