00001 #ifndef algorithmImport_h 00002 #define algorithmImport_h 00003 00004 #include "Event/algorithmCommand.h" 00005 00006 //############################################### 00007 template<class T> class algorithmImport : public algorithmCommand 00008 //############################################### 00009 { 00010 typedef void (T::* ptr_mem) (); 00011 00012 public: 00013 00015 algorithmImport(T* t, ptr_mem run):m_t(t),m_run(run) {} 00017 ~algorithmImport() {} 00018 00020 virtual void execute() {(m_t->* m_run)();} 00021 00022 private: 00023 00025 T* m_t; 00027 ptr_mem m_run; 00028 }; 00029 #endif