MiddleWares_YiHe 郑州颐和医院随访系统中间件

Config.h 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*************************************************************************
  2. 【文件名】 Config.h
  3. 【功能模块和目的】 配置信息类头文件
  4. 【开发者及日期】 郑石诺 2015/02/13
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. /*************************************************************************
  11. 【类名】 CConfig
  12. 【功能】
  13. 【接口说明】 配置信息类
  14. 【开发者及日期】 郑石诺 2015/02/13
  15. 【版本】 V1.0.0
  16. 【版权信息】 Copyright (C)2015 河南华谊网络科技有限公司
  17. 【更改记录】
  18. *************************************************************************/
  19. class CConfig
  20. {
  21. public:
  22. CConfig(void);
  23. virtual ~CConfig(void) = 0 {}
  24. // 读取所有配置
  25. static bool load(void);
  26. static const CString& logFilePath(void) { return m_LogFilePath; }
  27. static LPCTSTR ttsPath(void) { return m_TtsPath; }
  28. static const CString& ctiIp(void) { return m_CtiIp; }
  29. static int ctiPort(void) { return m_CtiPort; }
  30. static TTS_TYPE ttsType(void) { return m_TtsType; }
  31. static bool recordFax(void) { return m_RecordFax; }
  32. static int getAssoIpoLineIdOfAudioLine(int AudioLineId);
  33. static int getAssoIpoLineIdOfRecordLineAna(int RecordLineId);
  34. static int getAssoIpoLineIdOfRecordLineDig(int RecordLineId);
  35. static int getAssoIpoLineIdOfRecordLineIpr(int RecordLineId);
  36. private:
  37. static CString m_LogFilePath; // 日志路径
  38. static CString m_TtsPath; // TTS路径
  39. static CString m_CtiIp; // CTI服务器IP
  40. static int m_CtiPort; // CTI服务器PORT
  41. static TTS_TYPE m_TtsType; // TTS类型
  42. static bool m_RecordFax; // 发送传真的时候是否启动线路的录音,进而对传真问题进行分析
  43. };