PanelSerialXMLControl.h 1.1 KB

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