00001 #ifndef algorithmImport_h 00002 #define algorithmImport_h 00003 00004 #include "Event/algorithmCommand.h" 00005 00007 00018 //############################################### 00019 template<class T> class algorithmImport : public algorithmCommand 00020 //############################################### 00021 { 00022 typedef void (T::* ptr_mem) (); 00023 00024 public: 00025 00027 algorithmImport(T* t, ptr_mem run):m_t(t),m_run(run) {} 00029 virtual ~algorithmImport() {} 00030 00032 virtual void execute() {(m_t->* m_run)();} 00033 00034 private: 00035 00037 T* m_t; 00039 ptr_mem m_run; 00040 }; 00041 #endif