FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
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>();
}
Parameters
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.
Returns
FB::PluginCorePtr pointer to the FB::PluginCore class