/TGame/TServerMS/Service/ServiceImpDB.h
http://awoe.googlecode.com/ · C Header · 44 lines · 24 code · 10 blank · 10 comment · 0 complexity · cce9462e04112ce838c162d1f8ea148c MD5 · raw file
- #ifndef __WOE_SERVICE_IMP_DB___
- #define __WOE_SERVICE_IMP_DB___
-
- #include "Service/ServiceImp.h"
- #include "ServiceDataSMS.h"
- #include "Entity/EntityManagerIf.h"
- #include "Database/CacheMsgHandler.h"
- #include "Database/DBMessageHandler.h"
- //
- // Database Service
- //
- //
- class ServiceImpDB : public ServiceImp
- {
- public:
- ServiceImpDB();
-
- virtual void init(ServiceData& data);
-
- protected:
- virtual void onStart();
- virtual void onStop();
-
- //
- // callbacks
- //
- virtual void onTimer();
- virtual void onDispatchMsg(IMsg* pMsg);
- protected:
-
- Service* m_wpSvcLgc;
-
- CacheMsgHandler m_CacheMsgHandler;
- DBMessageHandler m_PersistMsgHandler;
-
-
- //
- // configurations from properties file
- //
- MsgHandlerInitDataDB m_initData;
- };
-
- #endif