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
00021 }
00022 virtual Processing* Create()
00023 {
00024
00025 return new CLAM::LadspaWrapper(_libraryFileName, _index, _factoryKey);
00026 }
00027 virtual ~LadspaWrapperCreator()
00028 {
00029
00030 }
00031 };
00032
00033 }
00034
00035 #endif // __LadspaWrapperCreator_hxx__
00036