1 #ifndef __PLUGIN_CREATOR_H__
2 #define __PLUGIN_CREATOR_H__
4 #include "noncopyable.h"
7 class PLUGIN_CREATOR : private NONCOPYABLE
10 PLUGIN_CREATOR() : plugin(new T()) {}
11 //~PLUGIN_CREATOR() { delete plugin; }
13 T * GetPlugin() { return plugin; }