chenluhua1980
2026-01-21 bfffbdb8a6d7a3b4805c45583f8bf2101e7b2ad4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#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::string getReportIdsText();
        const std::vector<unsigned int>& 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 getFirstReportID();
        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;
    };
}