PanelSerialXMLControl.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include "CcosLock.h"
  3. #include "ResDataObject.h"
  4. #define CcosPSLPanelKey ("Panel")
  5. #define CcosPSLPanelType ("PanelType")
  6. #define CcosPSLPanelSerial ("PanelSerial")
  7. #define CcosPSLActive ("Active")
  8. #define CcosPSLIPAddress ("IPAddress")
  9. #define CcosPSLCalibrationTime ("CalibrationTime")
  10. #define CcosPSLPanelSize ("PanelSize")
  11. struct PanelSerialList
  12. {
  13. string strPanelType;
  14. string strPanelSN;
  15. string strActive;
  16. string strIPAddress;
  17. string strCalibDate;
  18. string strPanelSize;
  19. PanelSerialList()
  20. {
  21. strActive = "";
  22. strPanelType = "";
  23. strPanelSN = "";
  24. strIPAddress = "";
  25. strCalibDate = "";
  26. strPanelSize = "";
  27. }
  28. };
  29. class PanelSerialXMLControl : public CcosLock
  30. {
  31. string m_strPanelXMLPath;
  32. ResDataObject m_ResData;
  33. ResDataObject m_ResPanelSerialList;
  34. public:
  35. PanelSerialXMLControl();
  36. virtual ~PanelSerialXMLControl();
  37. bool SetPanelXMLPath(const char* strPanelXMLPath);
  38. bool AddNewPanelSerial( PanelSerialList);
  39. bool GetPanelSerialList(list<PanelSerialList> &listPanelSerial);
  40. bool ClearSNList();
  41. bool GetActivedFDList(list<PanelSerialList> &listActivedFD);
  42. };