webpg-npapi 0.6.1
|
00001 /**********************************************************\ 00002 00003 Auto-generated Factory.cpp 00004 00005 This file contains the auto-generated factory methods 00006 for the webpgPlugin project 00007 00008 \**********************************************************/ 00009 00010 #include "FactoryBase.h" 00011 #include "webpgPlugin.h" 00012 #include <boost/make_shared.hpp> 00013 00014 class PluginFactory : public FB::FactoryBase 00015 { 00016 public: 00023 FB::PluginCorePtr createPlugin(const std::string& mimetype) 00024 { 00025 return boost::make_shared<webpgPlugin>(); 00026 } 00027 00031 void globalPluginInitialize() 00032 { 00033 webpgPlugin::StaticInitialize(); 00034 } 00035 00039 void globalPluginDeinitialize() 00040 { 00041 webpgPlugin::StaticDeinitialize(); 00042 } 00043 }; 00044 00050 FB::FactoryBasePtr getFactoryInstance() 00051 { 00052 static boost::shared_ptr<PluginFactory> factory = boost::make_shared<PluginFactory>(); 00053 return factory; 00054 } 00055