| | |
| | | return TRUE; |
| | | } |
| | | |
| | | void CCollectionEvent::setReport(CReport* pReport) |
| | | { |
| | | m_rptids.clear(); |
| | | m_reports.clear(); |
| | | if (pReport != nullptr) { |
| | | m_rptids.push_back(pReport->getReportId()); |
| | | m_reports.push_back(pReport); |
| | | } |
| | | } |
| | | |
| | | unsigned int CCollectionEvent::getFirstPortID() |
| | | { |
| | | if (m_reports.empty()) return -1; |
| | | return m_reports.front()->getReportId(); |
| | | } |
| | | |
| | | BOOL CCollectionEvent::deleteReport(unsigned int nReportId) |
| | | { |
| | | BOOL bDelete = FALSE; |
| | |
| | | return nullptr; |
| | | } |
| | | |
| | | CReport* CCollectionEvent::getFirstReport() |
| | | { |
| | | if (m_reports.empty()) return nullptr; |
| | | return m_reports.front(); |
| | | } |
| | | |
| | | std::vector<CReport*>& CCollectionEvent::getReports() |
| | | { |
| | | return m_reports; |