| | |
| | | #pragma once |
| | | #pragma once |
| | | #include <string> |
| | | #include <list> |
| | | #include "HsmsAction.h" |
| | |
| | | #define CAACK_6 6 /* command performed with errors */ |
| | | |
| | | /* |
| | | * 常量数据结构 |
| | | * 常量数据结构 |
| | | */ |
| | | typedef struct _EQConstant |
| | | { |
| | |
| | | } EQConstant; |
| | | |
| | | /* |
| | | * Command 数据结构 |
| | | * Command 数据结构 |
| | | */ |
| | | typedef struct _CommandParameter |
| | | { |
| | |
| | | } CommandParameter; |
| | | |
| | | /* |
| | | * Report 数据结构 |
| | | * Report 数据结构 |
| | | */ |
| | | typedef struct _REPORT |
| | | { |
| | |
| | | } REPORT; |
| | | |
| | | /* |
| | | * Value 数据结构 |
| | | * Value 数据结构 |
| | | */ |
| | | typedef struct _VALUE |
| | | { |
| | |
| | | ~CHsmsPassive(); |
| | | |
| | | public: |
| | | /* 设置机器型号 最大长度 20 bytes */ |
| | | /* 设置机器型号 最大长度 20 bytes */ |
| | | void setEquipmentModelType(const char* pszMode); |
| | | |
| | | /* 设置软件版本号 最大长度 20 bytes */ |
| | | /* 设置软件版本号 最大长度 20 bytes */ |
| | | void setSoftRev(const char* pszRev); |
| | | |
| | | /* 添加变量值到ISECS2Item */ |
| | | /* 添加变量值到ISECS2Item */ |
| | | void addVariableValueToItem(ISECS2Item* pParent, SERVO::CVariable* pVariable); |
| | | |
| | | // 连接Report |
| | | // 连接Report |
| | | void linkEventReport(unsigned int CEID, unsigned int RPTID); |
| | | |
| | | // 取消连接report |
| | | // 取消连接report |
| | | void unlinkEventReport(unsigned int CEID); |
| | | |
| | | // define Report |
| | | SERVO::CReport* defineReport(unsigned int RPTID, std::vector<unsigned int>& vids); |
| | | |
| | | // 取消 define report |
| | | // 取消 define report |
| | | bool removeReport(int rptid); |
| | | void clearAllReport(); |
| | | |
| | | // 从文件中加载CVariable列表 |
| | | // 从文件中加载CVariable列表 |
| | | int loadVarialbles(const char* pszFilepath); |
| | | |
| | | // 取得CVariable列表 |
| | | // 取得CVariable列表 |
| | | std::vector<SERVO::CVariable*>& getVariables(); |
| | | |
| | | // 取得指定Variable |
| | | // 取得指定Variable |
| | | SERVO::CVariable* getVariable(int variableId); |
| | | SERVO::CVariable* getVariable(const char* pszName); |
| | | |
| | | // 设置变量值 |
| | | // 设置变量值 |
| | | void setVariableValue(const char* pszName, __int64 value); |
| | | void setVariableValue(const char* pszName, const char* value); |
| | | void setVariableValue(const char* pszName, std::vector<SERVO::CVariable>& vars); |
| | | |
| | | // 从文件中加载CReport列表 |
| | | // 从文件中加载CReport列表 |
| | | int loadReports(const char* pszFilepath); |
| | | |
| | | // 取得Report列表 |
| | | // 取得Report列表 |
| | | std::vector<SERVO::CReport*>& getReports(); |
| | | |
| | | // 从文件中加载CCollectionEvent列表 |
| | | // 从文件中加载CCollectionEvent列表 |
| | | int loadCollectionEvents(const char* pszFilepath); |
| | | |
| | | // 取得CCollectionEvent列表 |
| | | // 取得CCollectionEvent列表 |
| | | std::vector<SERVO::CCollectionEvent*>& getCollectionEvents(); |
| | | |
| | | // 取消/删除所有CollectionEvent |
| | | // 取消/删除所有CollectionEvent |
| | | void clearAllCollectionEvent(); |
| | | |
| | | // 取得CCollectionEvent |
| | | // 取得CCollectionEvent |
| | | SERVO::CCollectionEvent* getEvent(unsigned short CEID); |
| | | |
| | | // 取得Report |
| | | // 取得Report |
| | | SERVO::CReport* getReport(int rptid); |
| | | |
| | | void setListener(SECSListener listener); |
| | |
| | | int unserialize(const char* pszBuffer, int nBufferSize); |
| | | |
| | | public: |
| | | /* request开头的函数为主动发送数据的函数 */ |
| | | /* request开头的函数为主动发送数据的函数 */ |
| | | int requestAreYouThere(); |
| | | int requestAlarmReport(int ALCD, int ALID, const char* ALTX); |
| | | int requestEventReportSend(unsigned int CEID); |
| | |
| | | int requestEventReportSend_CJ_End(); |
| | | int requestEventReportSend_Panel_Start(); |
| | | int requestEventReportSend_Panel_End(); |
| | | int requestEventReportSend_OCR_PanelID_Read_OK(); |
| | | |
| | | private: |
| | | void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName); |
| | | |
| | | /* reply开头的函数为回复函数 */ |
| | | /* reply开头的函数为回复函数 */ |
| | | int replyAreYouThere(IMessage* pRecv); |
| | | int replyEstablishCommunications(IMessage* pRecv); |
| | | int replySelectedEquipmentStatusData(IMessage* pRecv); |