TypedInControl.hxx
Go to the documentation of this file.00001 #ifndef _TypedInControl_
00002 #define _TypedInControl_
00003
00004 #include <CLAM/InControl.hxx>
00005 #warning TypedInControl<T> is deprecated use InControl<T> instead
00006
00007 namespace CLAM
00008 {
00009
00011 template<class ControlDataType>
00012 class TypedInControl : public InControl<ControlDataType>
00013 {
00014 public:
00016 TypedInControl(const std::string &name = "unnamed in control", Processing * proc = 0)
00017 : InControl<ControlDataType>(name,proc)
00018 {
00019 }
00021 template <typename ProcessingType, typename ParameterType>
00022 TypedInControl(const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(const ParameterType&))
00023 : InControl<ControlDataType>(name,proc,callback)
00024 {
00025 }
00027 template <typename ProcessingType, typename ParameterType>
00028 TypedInControl(unsigned id, const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(unsigned, const ParameterType&))
00029 : InControl<ControlDataType>(id,name,proc,callback)
00030 {
00031 }
00033 template <typename ProcessingType, typename ParameterType>
00034 TypedInControl(const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(ParameterType))
00035 : InControl<ControlDataType>(name,proc,callback)
00036 {
00037 }
00039 template <typename ProcessingType, typename ParameterType>
00040 TypedInControl(unsigned id, const std::string &name, ProcessingType * proc, void (ProcessingType::*callback)(unsigned, ParameterType))
00041 : InControlBase(id,name,proc,callback)
00042 {
00043 }
00044
00045 };
00046
00047 }
00048
00049 #endif // _TypedInControl_