00001 #ifndef MSGHANDLER_H 00002 #define MSGHANDLER_H 00003 00004 class MsgHandler; 00005 00006 #include "Session.hpp" 00007 00008 #include <string> 00009 00013 class MsgHandler { 00014 public: 00021 virtual void execute(const string& data, msgHeader1& header, 00022 Session* conn) = 0; 00023 00027 inline static int getMsgType(); 00028 00032 inline static int getRelease(); 00033 00034 protected: 00040 static const int msg_type = 0; 00041 00046 static const int release = 1; 00047 }; 00048 00049 #endif