1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include "CcosLock.h"
- #include "ResDataObject.h"
- #include <list>
- #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<PanelSerialList> &listPanelSerial);
- bool ClearSNList();
- bool GetActivedFDList(list<PanelSerialList> &listActivedFD);
- };
|