LadspaWrapperCreator.hxx

Go to the documentation of this file.
00001 #ifndef __LadspaWrapperCreator_hxx__
00002 #define __LadspaWrapperCreator_hxx__
00003 
00004 #include "LadspaWrapper.hxx"
00005 
00006 namespace CLAM {
00007 
00008 class LadspaWrapperCreator : public CLAM::Factory<Processing>::Creator 
00009 {
00010 private:
00011         std::string _libraryFileName;
00012         unsigned _index;
00013         std::string _factoryKey;
00014 public:
00015         LadspaWrapperCreator( const std::string& libraryFileName, unsigned index, const std::string& key ) 
00016                 : _libraryFileName( libraryFileName )
00017                 , _index( index )
00018                 , _factoryKey( key )
00019         {
00020                 //std::cout<<"LadspaWrapperCreator() libraryFileName="<<libraryFileName<<std::endl;
00021         }
00022         virtual Processing* Create()
00023         {
00024                 //std::cout << "LadspaWrapperCreator::Create called"<<std::endl;
00025                 return new CLAM::LadspaWrapper(_libraryFileName, _index, _factoryKey);
00026         }
00027         virtual ~LadspaWrapperCreator() 
00028         {
00029                 //std::cout<<"~LadspaWrapperCreator()"<<std::endl; 
00030         }
00031 };
00032 
00033 } // namespace CLAM
00034 
00035 #endif // __LadspaWrapperCreator_hxx__
00036 

Generated on Tue Aug 12 22:33:43 2008 for CLAM by  doxygen 1.5.5