PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 1#ifndef __WOE_SERVICE_IMP_DB___
 2#define __WOE_SERVICE_IMP_DB___
 3
 4#include "Service/ServiceImp.h"
 5#include "ServiceDataSMS.h"
 6#include "Entity/EntityManagerIf.h"
 7#include "Database/CacheMsgHandler.h"
 8#include "Database/DBMessageHandler.h"
 9//
10//	Database Service
11//
12//
13class ServiceImpDB : public ServiceImp
14{
15public:
16	ServiceImpDB();
17
18	virtual void init(ServiceData& data);
19
20protected:
21	virtual void onStart();
22	virtual void onStop();
23
24	//
25	//	callbacks
26	//
27	virtual void onTimer();
28	virtual void onDispatchMsg(IMsg* pMsg);
29protected:
30
31	Service*	m_wpSvcLgc;
32
33	CacheMsgHandler	m_CacheMsgHandler;
34	DBMessageHandler m_PersistMsgHandler;
35
36
37	//
38	//	configurations from properties file
39	//
40	MsgHandlerInitDataDB	m_initData;
41};
42
43#endif
44