Page tree
Skip to end of metadata
Go to start of metadata

FB::PluginCorePtr FB::FactoryBase::createPlugin ( const std::string &  mimetype)
pure virtual

Creates a FB::PluginCore derived user plugin object. This must be implemented for all plugin projects.

// Example implementation
FB::PluginCorePtr createPlugin(const std::string& mimetype)
return boost::make_shared<MyPluginObject>();
mimetypeAs of 1.3 this is not wired in, in future versions this will be the mimetype that was requested by the object tag that this plugin is being loaded for. This will allow you to optionally provide multiple plugins in one file.
FB::PluginCorePtr pointer to the FB::PluginCore class
  • No labels