00001 #ifndef PHX_FACTORY_H 00002 #define PHX_FACTORY_H 00003 00004 namespace Phx { 00005 00009 template< typename T > class PhxFactory 00010 { 00011 public: 00012 virtual ~PhxFactory() {}; 00013 00018 virtual const String& getType() const = 0; 00019 00026 virtual T* createInstance( const String& name ) = 0; 00030 virtual void destroyInstance( T* ) = 0; 00031 }; 00032 00033 } // namespace 00034 00035 #endif
1.4.2