00001 #ifndef MYFACTORY_H 00002 #define MYFACTORY_H 00003 #include <coil/Factory.h> 00004 00005 class Base 00006 { 00007 public: 00008 virtual ~Base(){} 00009 virtual std::string name() = 0; 00010 }; 00011 00012 00013 00014 typedef coil::GlobalFactory<Base> MyFactory; 00015 EXTERN template class DLL_PLUGIN coil::GlobalFactory<Base>; 00016 00017 00018 #endif // MYFACTORY_H