ElectricEqpmt_TelProtectShow.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #pragma once
  2. #include <cstring>
  3. /*
  4. 遥信客户端显示基本信息
  5. */
  6. class ElectricEqpmt_TelProtectShow
  7. {
  8. public:
  9. ElectricEqpmt_TelProtectShow();
  10. ~ElectricEqpmt_TelProtectShow();
  11. void SetProtectShowID( int nProtectShowID )
  12. {
  13. m_nProtectShowID = nProtectShowID;
  14. }
  15. int GetProtectShowID()
  16. {
  17. return m_nProtectShowID;
  18. }
  19. void SetRecoverStatus( int nRecoverStatus )
  20. {
  21. m_nRecoverStatus = nRecoverStatus;
  22. }
  23. int GetRecoverStatus()
  24. {
  25. return m_nRecoverStatus;
  26. }
  27. void SetProtectStatus( int nProtectStatus )
  28. {
  29. m_nProtectStatus = nProtectStatus;
  30. }
  31. int GetProtectStatus()
  32. {
  33. return m_nProtectStatus;
  34. }
  35. void SetRecoverShowText( const std::string& strRecoverShowText )
  36. {
  37. m_strRecoverShowText = strRecoverShowText;
  38. }
  39. std::string GetRecoverShowText()
  40. {
  41. return m_strRecoverShowText;
  42. }
  43. void SetProtectShowText( const std::string& strProtectShowText )
  44. {
  45. m_strProtectShowText = strProtectShowText;
  46. }
  47. std::string GetProtectShowText()
  48. {
  49. return m_strProtectShowText;
  50. }
  51. void SetRecoverColor( int64_t rgbRecoverColor )
  52. {
  53. m_nRecoverColor = rgbRecoverColor;
  54. }
  55. int64_t GetRecoverColor()
  56. {
  57. return m_nRecoverColor;
  58. }
  59. void SetProtectColor(int64_t rgbProtectColor )
  60. {
  61. m_nProtectColor = rgbProtectColor;
  62. }
  63. int64_t GetProtectColor()
  64. {
  65. return m_nProtectColor;
  66. }
  67. public:
  68. int m_nProtectShowID; // 显示规则编号
  69. int m_nRecoverStatus; // 故障恢复状态
  70. int m_nProtectStatus; // 故障发生状态
  71. std::string m_strRecoverShowText; // 故障恢复显示文本
  72. std::string m_strProtectShowText; // 故障发生显示文本
  73. int64_t m_nRecoverColor; // 故障恢复显示颜色
  74. int64_t m_nProtectColor; // 故障发生显示颜色
  75. };