SockIt

Factory.cpp

Go to the documentation of this file.
00001 /**********************************************************\
00002  
00003  Auto-generated Factory.cpp
00004  
00005  This file contains the auto-generated factory methods 
00006  for the SockIt project
00007  
00008  \**********************************************************/
00009 
00010 #include "FactoryBase.h"
00011 #include "SockIt.h"
00012 #include <boost/make_shared.hpp>
00013 
00014 using std::string;
00015 
00016 class PluginFactory: public FB::FactoryBase
00017 {
00018     public:
00019 
00024         FB::PluginCorePtr createPlugin(const string& mimetype)
00025         {
00026             return boost::make_shared<SockIt>();
00027         }
00028 
00034         void globalPluginInitialize()
00035         {
00036             SockIt::StaticInitialize();
00037         }
00038 
00044         void globalPluginDeinitialize()
00045         {
00046             SockIt::StaticDeinitialize();
00047         }
00048 };
00049 
00054 FB::FactoryBasePtr getFactoryInstance()
00055 {
00056     static boost::shared_ptr<PluginFactory> factory = boost::make_shared<PluginFactory>();
00057     return factory;
00058 }
00059 
 All Classes Files Functions Variables Typedefs Friends Defines