LAPTOP-SNT8I5JK\Boounion
2025-07-28 e51c6d1360f9679dd8e4dd3379ce0db1886badbf
SourceCode/Bond/EAPSimulator/CCollectionEvent.h
对比新文件
@@ -0,0 +1,33 @@
#pragma once
#include "CReport.h"
#include <vector>
namespace SERVO {
   class CCollectionEvent
   {
   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::vector<unsigned int>& getReportIds();
      std::string getReportIdsText();
      BOOL addReport(CReport* pReport);
      BOOL deleteReport(unsigned int nReportId);
      CReport* getReport(unsigned int nReportId);
      void setReport(unsigned int nReportId);
   private:
      unsigned int m_nCEID;
      std::string m_strName;
      std::string m_strDescription;
      std::vector<unsigned int> m_rptids;
      std::vector<CReport*> m_reports;
   };
}