#includeThis example demonstrates how to create a plugin interface using the cpp Plugin library, and how to implement two plugins that implement the interface. It also shows how to load and execute the plugins using the cpp Plugin Manager. Package Library: The cpp Plugin library is provided as a CMake package named "cppPlugin". It is available on some package management systems like Debian or Arch.#include // define plugin interface class PluginInterface { public: virtual void execute() = 0; virtual ~PluginInterface() = default; }; // plugin 1 class Plugin1 : public PluginInterface { public: void execute() override { std::cout << "Plugin 1 is executed." << std::endl; } }; // plugin 2 class Plugin2 : public PluginInterface { public: void execute() override { std::cout << "Plugin 2 is executed." << std::endl; } }; int main(int argc, char **argv) { // create plugin manager cppPlugin::PluginManager manager; // load plugins manager.loadPlugin("./libPlugin1.so"); manager.loadPlugin("./libPlugin2.so"); // get plugin instances PluginInterface *plugin1 = manager.getPlugin ("Plugin 1"); PluginInterface *plugin2 = manager.getPlugin ("Plugin 2"); // execute plugins plugin1->execute(); plugin2->execute(); return 0; }