CLAM-Development  1.4.0
TypedInControl.hxx
Go to the documentation of this file.
1 #ifndef _TypedInControl_
2 #define _TypedInControl_
3 
4 #include <CLAM/InControl.hxx>
5 #warning TypedInControl<T> is deprecated use InControl<T> instead
6 
7 namespace CLAM
8 {
9 
11 template<class ControlDataType>
12 class TypedInControl : public InControl<ControlDataType>
13 {
14 public:
16  TypedInControl(const std::string &name = "unnamed in control", Processing * proc = 0)
17  : InControl<ControlDataType>(name,proc)
18  {
19  }
21  template <typename ProcessingType, typename ParameterType>
22  TypedInControl(const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(const ParameterType&))
23  : InControl<ControlDataType>(name,proc,callback)
24  {
25  }
27  template <typename ProcessingType, typename ParameterType>
28  TypedInControl(unsigned id, const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(unsigned, const ParameterType&))
29  : InControl<ControlDataType>(id,name,proc,callback)
30  {
31  }
33  template <typename ProcessingType, typename ParameterType>
34  TypedInControl(const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(ParameterType))
35  : InControl<ControlDataType>(name,proc,callback)
36  {
37  }
39  template <typename ProcessingType, typename ParameterType>
40  TypedInControl(unsigned id, const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(unsigned, ParameterType))
41  : InControlBase(id,name,proc,callback)
42  {
43  }
44 
45 };
46 
47 }
48 
49 #endif // _TypedInControl_