void ReportManager::AddReport(Report const& report) { Report* r = new Report(this->_logger); r->CopyDataFrom(report); if (r->HasFailed()) this->_failedReports.push_back(r); else this->_reports.push_back(r); }
void Report::CopyDataFrom(Report const& report) { this->_params.GetDataFrom(report.GetParams()); this->_failed = report.HasFailed(); this->_trades = report.GetTrades(); }