hd

CellBase.cpp 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #include "StdAfx.h"
  2. #include "CellBase.h"
  3. #include "CellAUTOCREATE.h"
  4. #include "IvrFlow.h"
  5. CCellBase::CCellBase(void)
  6. {
  7. }
  8. CCellBase::CCellBase( CCellBase& CellBase ) : m_Pos(CellBase.m_Pos), m_Note(CellBase.m_Note), m_pIvrFlow(CellBase.m_pIvrFlow)
  9. {
  10. }
  11. /*****************************************************************
  12. **【函数名称】 createCell
  13. **【函数功能】 根据节点名称生成对应节点对象
  14. **【参数】 a_Name: 名称
  15. **【返回值】 节点对象
  16. ****************************************************************/
  17. CCellBase* CCellBase::createCell( const CString& a_Name )
  18. {
  19. return CCellAUTOCREATE::createCell(a_Name);
  20. }
  21. /*****************************************************************
  22. **【函数名称】 __getCellInfo
  23. **【函数功能】 节点流程执行信息
  24. **【参数】
  25. **【返回值】 节点执行信息
  26. ****************************************************************/
  27. void CCellBase::_getCellInfo( CString& InfoBuffer )
  28. {
  29. if(m_pIvrFlow != NULL)
  30. {
  31. InfoBuffer.Format(_T("{ FLOW[%d], NODE[%d], NOTE = %s } "), m_pIvrFlow->id(), m_Pos, m_Note);
  32. }
  33. }
  34. /*****************************************************************
  35. **【函数名称】 assoCallID
  36. **【函数功能】 获取关联CallID
  37. **【参数】
  38. **【返回值】
  39. ****************************************************************/
  40. ULONG CCellBase::assoCallID( void )
  41. {
  42. if(m_pIvrFlow != NULL)
  43. return m_pIvrFlow->assoCallId();
  44. else
  45. return 0;
  46. }