| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*************************************************************************
- 【文件名】 AgentGroup.h
- 【功能模块和目的】 座席组类头文件
- 【开发者及日期】 郑石诺 2015/07/27
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- #pragma once
- #include <map>
- class CAgent;
- class CStrategyAD;
- /*************************************************************************
- 【类名】 CAgentGroup
- 【功能】
- 【接口说明】 座席组类
- 【开发者及日期】 郑石诺 2015/07/27
- 【版本】 V1.0.0
- 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
- 【更改记录】
- *************************************************************************/
- class CAgentGroup : public CArray<CAgent*, CAgent*>
- {
- public:
- CAgentGroup(void);
- virtual ~CAgentGroup(void);
- void add(CAgent* a_pAgent);
- bool remove(CAgent* a_pAgent);
- void clear(void);
- bool isNoFreeAgent(void); // 是否座席全忙
- QUEUE_AGENT_RESULT distributeAgent(CStrategyAD* pStrategy, const CString& InfoEx, UINT& Agent, UINT& Exten);
- CAgent* GetFreeAgentForLoop();
- CAgent* GetFreeAgentForLoopByAgentId(); // 2020-01-13通过座席ID顺序分配
- private:
- CCriticalSection m_CsLock4Distribute;
- };
|