诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.1 KiB

  1. #ifndef MODULE_DB_PARAMETER_HEAD_FILE
  2. #define MODULE_DB_PARAMETER_HEAD_FILE
  3. #pragma once
  4. #include "ModuleManagerHead.h"
  5. //////////////////////////////////////////////////////////////////////////////////
  6. //模块参数
  7. class MODULE_MANAGER_CLASS CModuleDBParameter
  8. {
  9. //服务参数
  10. protected:
  11. tagDataBaseParameter m_PlatformDBParameter; //连接信息 ///---连接为平台数据库PlatformDB
  12. //静态变量
  13. protected:
  14. static CModuleDBParameter * m_pModuleDBParameter; //对象指针
  15. //函数定义
  16. public:
  17. //构造函数
  18. CModuleDBParameter();
  19. //析构函数
  20. virtual ~CModuleDBParameter();
  21. //连接信息
  22. public:
  23. //连接信息
  24. tagDataBaseParameter * GetPlatformDBParameter() { return &m_PlatformDBParameter; }
  25. //连接信息
  26. VOID SetPlatformDBParameter(tagDataBaseParameter & PlatformDBParameter) { m_PlatformDBParameter = PlatformDBParameter; }
  27. //静态函数
  28. public:
  29. //获取对象
  30. static CModuleDBParameter * GetModuleDBParameter() { return m_pModuleDBParameter; }
  31. };
  32. //////////////////////////////////////////////////////////////////////////////////
  33. #endif