예제 #1
0
 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);
 }
예제 #2
0
 void Report::CopyDataFrom(Report const& report)
 {
     this->_params.GetDataFrom(report.GetParams());
     this->_failed = report.HasFailed();
     this->_trades = report.GetTrades();
 }