/************************************************************************* 【文件名】 TrunkAidedAllocator.h 【功能模块和目的】 中继辅助分派器类头文件 【开发者及日期】 郑石诺 2016/03/02 【版本】 V1.0.0 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司 【更改记录】 *************************************************************************/ #pragma once class CAidedUnit; class COneLeg; /************************************************************************* 【类名】 CTrunkAidedAllocator 【功能】 【接口说明】 中继辅助分派器类 【开发者及日期】 郑石诺 2016/03/02 【版本】 V1.0.0 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司 【更改记录】 *************************************************************************/ class CTrunkAidedAllocator { SINGLETON_DECLARE(CTrunkAidedAllocator) public: CTrunkAidedAllocator(void); ~CTrunkAidedAllocator(void); void init(void); COneLeg* aidedAlloc(CString& CallerNum, CString& CalleeNum, TRUNK_ITEM** pTrunkItem); COneLeg* aidedAllocWithDefault(CString& CallerNum, CString& CalleeNum, TRUNK_ITEM** pTrunkItem); private: void __free(void); CAidedUnit* __getAidedUnit(LPCTSTR Prefix, bool NewWhenNULL = false); private: CArray m_UnitList; };