#pragma once #include "CReport.h" #include namespace SERVO { class CCollectionEvent { public: CCollectionEvent(); CCollectionEvent(unsigned int id, const char* pszName, const char* pszDescription, std::vector& prtids); virtual ~CCollectionEvent(); public: unsigned int getEventId(); std::string& getName(); std::string& getDescription(); std::vector& getReports(); std::string getReportIdsText(); const std::vector& getReportIds() const { return m_rptids; } 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 m_rptids; std::vector m_reports; }; }