00001 00076 #ifndef _M_SORTER_H_ 00077 #define _M_SORTER_H_ 00078 00079 #include <string> 00080 #include "QModule.hh" 00081 #include "QCuore.hh" 00082 #include "QVector.hh" 00083 00084 00085 class MSorter : public QModule { 00086 00087 public: 00088 MSorter(QSequence* s); 00089 00090 virtual ~MSorter(); 00091 00092 // Init method is called before event loop 00093 virtual void Init(); 00094 00095 // Doit method is called for each event, getting the event as argument 00096 virtual QEvent* Do( QEvent* ev); 00097 00098 // Done method is called after event loop 00099 virtual void Done(); 00100 00101 private: 00103 std::string fSortFilename; 00104 00106 QVector fEventVector; 00107 00109 unsigned int fIndex; 00110 }; 00111 00112 #endif