Mercurial > hg > svcore
comparison base/EventSeries.cpp @ 1815:c546429d4c2f
Add optional ability to write a header on delimited data output, & to write times in frames
| author | Chris Cannam | 
|---|---|
| date | Fri, 10 Jan 2020 14:29:54 +0000 | 
| parents | 13bd41bd8a17 | 
| children | 21c792334c2e | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1814:1318e069906b | 1815:c546429d4c2f | 
|---|---|
| 593 for (const auto &p: m_events) { | 593 for (const auto &p: m_events) { | 
| 594 p.toXml(out, indent + " ", "", options); | 594 p.toXml(out, indent + " ", "", options); | 
| 595 } | 595 } | 
| 596 | 596 | 
| 597 out << indent << "</dataset>\n"; | 597 out << indent << "</dataset>\n"; | 
| 598 } | |
| 599 | |
| 600 QString | |
| 601 EventSeries::getDelimitedDataHeaderLine(QString delimiter, | |
| 602 DataExportOptions opts, | |
| 603 Event::ExportNameOptions nopts) const | |
| 604 { | |
| 605 if (m_events.empty()) { | |
| 606 return QString(); | |
| 607 } else { | |
| 608 return m_events.begin()->getDelimitedDataHeaderLine(delimiter, | |
| 609 opts, | |
| 610 nopts); | |
| 611 } | |
| 598 } | 612 } | 
| 599 | 613 | 
| 600 QString | 614 QString | 
| 601 EventSeries::toDelimitedDataString(QString delimiter, | 615 EventSeries::toDelimitedDataString(QString delimiter, | 
| 602 DataExportOptions options, | 616 DataExportOptions options, | 
