Files
Sun1602/Server/SolarAuth/Sessions/ServerSessionFactory.h
T
2022-10-26 12:25:11 +08:00

36 lines
739 B
C++

#ifndef __SERVER_SESSION_FACTORY_H__
#define __SERVER_SESSION_FACTORY_H__
#pragma once
#include <MemoryPoolFactory.h>
#include <Singleton.h>
#include "ServerSessionManager.h"
using namespace util;
class TempServerSession;
class MasterServerSession;
class ServerSession;
class ServerSessionFactory : public Singleton<ServerSessionFactory>
{
public:
ServerSessionFactory();
~ServerSessionFactory();
SERVER_SESSION_DELEGATOR AllocServerSession( eSERVER_TYPE eServerType );
BOOL FreeServerSession( SERVER_SESSION_DELEGATOR pServerSession );
private:
CMemoryPoolFactory<TempServerSession>* m_pTempServerPool;
CMemoryPoolFactory<MasterServerSession>* m_pMasterServerPool;
};
#endif // __SERVER_SESSION_FACTORY_H__