CLAM-Development  1.4.0
OutControlPublisher.hxx
Go to the documentation of this file.
1 #ifndef _OUTCONTROL_PUBLISHER_HXX_
2 #define _OUTCONTROL_PUBLISHER_HXX_
3 
4 #include "InControl.hxx"
5 #include "OutControl.hxx"
6 #include <string>
7 
8 // TODO: Refactoring...
9 // Extract common interface from OutControlPublisher, OutControl and create a common base class
10 
11 namespace CLAM
12 {
14  {
15  FloatOutControl* mPublished;
16 
17  public:
19  : FloatOutControl( "OutControlPublisher", 0 )
20  {
21  mPublished=NULL;
22  }
23 
24  OutControlPublisher( const std::string& name, Processing* father )
25  : FloatOutControl( name, father )
26  {
27  mPublished=NULL;
28  }
29 
31  {
32  mPublished = &out;
33  }
34 
35  void AddLink( InControlBase& in )
36  {
38  if(mPublished) mPublished->AddLink( in );
39  }
40  };
41 
42 } // namespace CLAM
43 
44 #endif
45