#pragma once #include #include using namespace util; class TempServerSession; class AgentServerSession; class MasterServerSession; class ServerSession; class ServerSessionFactory : public Singleton { public: ServerSessionFactory(void); ~ServerSessionFactory(void); VOID Init( int nSize ); ServerSession * AllocServerSession( eUPDATE_SERVER_TYPE eServerType ); BOOL FreeServerSession( ServerSession * pServerSession ); private: CMemoryPoolFactory * m_pTempServerPool; CMemoryPoolFactory * m_pAgentServerPool; CMemoryPoolFactory * m_pMasterServerPool; };