class MyPlugin : public PluginInstanceParent { public: MyPlugin() {} ~MyPlugin() {} }; // Create a new instance of the plugin MyPlugin* plugin = new MyPlugin();
class MyPlugin : public PluginInstanceParent { public: MyPlugin(float value) : m_value(value) {} ~MyPlugin() {} void setValue(float value) { m_value = value; } private: float m_value; }; // Create a new instance of the plugin with a value of 3.14 MyPlugin* plugin = new MyPlugin(3.14f); // Set the plugin's value to 2.71 plugin->setValue(2.71f);This example shows how to create a plugin with a constructor that takes arguments, and how to call a function on the plugin instance. These examples are a simplified version of a real code using the PluginInstanceParent class. The library package which contains the PluginInstanceParent class is likely to be a plugin framework or a library for building plugin systems.