CLAM-Development  1.4.0
LadspaWrapperCreator.hxx
Go to the documentation of this file.
1 #ifndef __LadspaWrapperCreator_hxx__
2 #define __LadspaWrapperCreator_hxx__
3 
4 #include "LadspaWrapper.hxx"
6 
7 namespace CLAM {
8 
9 class LadspaWrapperCreator : public CLAM::Factory<Processing>::Creator
10 {
11 private:
12  std::string _libraryFileName;
13  unsigned _index;
14  std::string _factoryKey;
15 public:
16  LadspaWrapperCreator( const std::string& libraryFileName, unsigned index, const std::string& key )
17  : _libraryFileName( libraryFileName )
18  , _index( index )
19  , _factoryKey( key )
20  {
21  //std::cout<<"LadspaWrapperCreator() libraryFileName="<<libraryFileName<<std::endl;
22  }
23  virtual Processing* Create()
24  {
25  //std::cout << "LadspaWrapperCreator::Create called"<<std::endl;
26  return new CLAM::LadspaWrapper(_libraryFileName, _index, _factoryKey);
27  }
29  {
30  //std::cout<<"~LadspaWrapperCreator()"<<std::endl;
31  }
32 };
33 
35 {
36 private:
37  std::string _libraryFileName;
38  unsigned _index;
39  std::string _factoryKey;
40 public:
41  LadspaWrapperBufferCreator( const std::string& libraryFileName, unsigned index, const std::string& key )
42  : _libraryFileName( libraryFileName )
43  , _index( index )
44  , _factoryKey( key )
45  {
46  //std::cout<<"LadspaWrapperBufferCreator() libraryFileName="<<libraryFileName<<std::endl;
47  }
48  virtual Processing* Create()
49  {
50  //std::cout << "LadspaWrapperBufferCreator::Create called"<<std::endl;
51  return new CLAM::LadspaWrapperBuffer(_libraryFileName, _index, _factoryKey);
52  }
54  {
55  //std::cout<<"~LadspaWrapperBufferCreator()"<<std::endl;
56  }
57 };
58 
59 } // namespace CLAM
60 
61 #endif // __LadspaWrapperCreator_hxx__
62