多数据源中间件标准版1.0

Config.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*************************************************************************
  2. 【文件名】 Config.h
  3. 【功能模块和目的】 配置信息管理类头文件
  4. 【开发者及日期】 郑石诺 2016/03/24
  5. 【版本】 V1.0.0
  6. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  7. 【更改记录】
  8. *************************************************************************/
  9. #pragma once
  10. /*************************************************************************
  11. 【类名】 CConfig
  12. 【功能】
  13. 【接口说明】 配置信息管理类
  14. 【开发者及日期】 郑石诺 2016/03/24
  15. 【版本】 V1.0.0
  16. 【版权信息】 Copyright (C)2016 河南华谊网络科技有限公司
  17. 【更改记录】
  18. *************************************************************************/
  19. class CConfig
  20. {
  21. public:
  22. CConfig(void);
  23. virtual ~CConfig(void) = 0;
  24. static bool load(void);
  25. static RECORD_TYPE recordType(void) { return m_RecType; } // 获取录音类型
  26. static RECORD_FORMAT recordFormat(void) { return m_RecFormat; } // 获取录音格式
  27. static int listenPort(void) { return m_ListenPort; }
  28. static LPCTSTR devLinkIp(void) { return m_DevLinkIP; }
  29. static LPCTSTR devLinkPwd(void) { return m_DevLinkPwd; }
  30. private:
  31. static RECORD_TYPE m_RecType; // 录音类型 0:中继录音, 1:并线录音
  32. static RECORD_FORMAT m_RecFormat; // 录音格式
  33. static int m_ListenPort; // 监听端口
  34. static CString m_DevLinkIP; // DevLink地址
  35. static CString m_DevLinkPwd; // DevLink口令
  36. };