/TGame/TServerMS/Database/CacheService.cpp
http://awoe.googlecode.com/ · C++ · 38 lines · 23 code · 8 blank · 7 comment · 1 complexity · c974aad2655e16be658486cbdb9f6a63 MD5 · raw file
- /////////////////////////////////////////////////////////////////////
- // CacheService.cpp
- //
- //
- // 11/16/2010
- //
- /////////////////////////////////////////////////////////////////////
-
- #include "stdafx.h"
- #include "CacheService.h"
- #include "CacheMsgHandler.h"
-
-
-
- CacheService::CacheService( CacheMsgHandler* pCacheMsgHandler )
- : m_pCacheMsgHandler( pCacheMsgHandler )
- {
- }
-
- CacheService::~CacheService( void )
- {
- if ( m_pCacheMsgHandler )
- {
- delete m_pCacheMsgHandler;
- m_pCacheMsgHandler = NULL;
- }
- }
-
- void CacheService::RegisterMessage( int msgID, CacheMsgHandler* message )
- {
- m_pCacheMsgHandler->RegisterMessage( msgID, message );
- }
-
- void CacheService::ReceiveMsg( DBMessage* message ) const
- {
- m_pCacheMsgHandler->handleMsg( message );
- }