#pragma once #include "CcosLock.h" #include "ResDataObject.h" #define CcosPSLPanelKey ("Panel") #define CcosPSLPanelType ("PanelType") #define CcosPSLPanelSerial ("PanelSerial") #define CcosPSLActive ("Active") #define CcosPSLIPAddress ("IPAddress") #define CcosPSLCalibrationTime ("CalibrationTime") #define CcosPSLPanelSize ("PanelSize") struct PanelSerialList { string strPanelType; string strPanelSN; string strActive; string strIPAddress; string strCalibDate; string strPanelSize; PanelSerialList() { strActive = ""; strPanelType = ""; strPanelSN = ""; strIPAddress = ""; strCalibDate = ""; strPanelSize = ""; } }; class PanelSerialXMLControl : public CcosLock { string m_strPanelXMLPath; ResDataObject m_ResData; ResDataObject m_ResPanelSerialList; public: PanelSerialXMLControl(); virtual ~PanelSerialXMLControl(); bool SetPanelXMLPath(const char* strPanelXMLPath); bool AddNewPanelSerial( PanelSerialList); bool GetPanelSerialList(list &listPanelSerial); bool ClearSNList(); bool GetActivedFDList(list &listActivedFD); };