LAPTOP-SNT8I5JK\Boounion
2025-09-19 334b16b4abb4cbe3d1d4e4f211efd6f4468ae09f
SourceCode/Bond/Servo/CCollectionEvent.h
@@ -8,16 +8,29 @@
   {
   public:
      CCollectionEvent();
      CCollectionEvent(unsigned int id, const char* pszName, const char* pszDescription, std::vector<unsigned int>& prtids);
      virtual ~CCollectionEvent();
   public:
      unsigned int getEventId();
      std::string& getName();
      std::string& getDescription();
      std::vector<CReport*>& getReports();
      std::string getReportIdsText();
      BOOL addReport(CReport* pReport);
      BOOL deleteReport(unsigned int nReportId);
      CReport* getReport(unsigned int nReportId);
      /* 如果一个CEID只有一个Report的场景,调用此函数设置或取消 */
      void setReport(CReport* pReport);
      unsigned int getFirstPortID();
      CReport* getFirstReport();
   private:
      unsigned int m_nCEID;
      std::string m_strName;
      std::string m_strDescription;
      std::vector<unsigned int> m_rptids;
      std::vector<CReport*> m_reports;
   };
}