chenluhua1980
2025-12-11 33f080ddc32f3545b685b2e0a7a5df3c35894270
SourceCode/Bond/Servo/HsmsPassive.h
@@ -135,6 +135,9 @@
   // 取消 define report
   bool removeReport(int rptid);
   int deleteReport(int rptid);
   int addReport(int rptid, const std::vector<unsigned int>& vids);
   int updateReport(int rptid, const std::vector<unsigned int>& vids);
   void clearAllReport();
   // 从文件中加载CVariable列表
@@ -142,10 +145,14 @@
   // 取得CVariable列表
   std::vector<SERVO::CVariable*>& getVariables();
   unsigned int getMaxVariableId() const;
   // 取得指定Variable
   SERVO::CVariable* getVariable(int variableId);
   SERVO::CVariable* getVariable(const char* pszName);
   int deleteVariable(int variableId);
   int addVariable(const char* pszName, const char* pszFormat, const char* pszRemark, int& outId);
   int updateVariable(int variableId, const char* pszName, const char* pszFormat, const char* pszRemark);
   // 设置变量值
   void setVariableValue(const char* pszName, __int64 value);
@@ -157,6 +164,7 @@
   // 取得Report列表
   std::vector<SERVO::CReport*>& getReports();
   unsigned int getMaxReportId() const;
   // 从文件中加载CCollectionEvent列表
   int loadCollectionEvents(const char* pszFilepath);
@@ -166,6 +174,7 @@
   // 取消/删除所有CollectionEvent
   void clearAllCollectionEvent();
   int deleteCollectionEvent(unsigned short CEID);
   // 取得CCollectionEvent
   SERVO::CCollectionEvent* getEvent(unsigned short CEID);
@@ -234,6 +243,9 @@
   int onRecvMsg(IMessage* pMessage);
   void clearAllVariabel();
   std::vector<unsigned int> parseVidList(CString& strNums);
   int writeVariablesToFile(const std::string& filepath);
   int writeReportsToFile(const std::string& filepath);
   int writeCollectionEventsToFile(const std::string& filepath);
private:
   CModel* m_pModel;
@@ -251,6 +263,15 @@
private:
   SECSListener m_listener;
   std::string m_strVariableFilepath;
   bool m_bVariableUtf8{ false };
   bool m_bVariableUtf8Bom{ false };
   std::string m_strReportFilepath;
   bool m_bReportUtf8{ false };
   bool m_bReportUtf8Bom{ false };
   std::string m_strCollectionEventFilepath;
   bool m_bCollectionUtf8{ false };
   bool m_bCollectionUtf8Bom{ false };
   BOOL m_bCimWorking;
   HANDLE m_hCimWorkEvent;
   HANDLE m_hCimWorkThreadHandle;