Mercurial > hg > sonic-annotator
diff runner/LabFeatureWriter.h @ 157:946115b8badd labfile
Proper implementation of fill-ends flag in LabFeatureWriter
author | Chris Cannam |
---|---|
date | Wed, 15 Oct 2014 08:00:01 +0100 |
parents | 6ff4da31db8b |
children | 59abb58b1855 |
line wrap: on
line diff
--- a/runner/LabFeatureWriter.h Tue Oct 14 18:50:01 2014 +0100 +++ b/runner/LabFeatureWriter.h Wed Oct 15 08:00:01 2014 +0100 @@ -51,10 +51,19 @@ const Vamp::Plugin::FeatureList &features, std::string summaryType = ""); + virtual void finish(); + virtual QString getWriterTag() const { return "lab"; } private: bool m_forceEnd; + + typedef map<TrackTransformPair, Vamp::Plugin::Feature> PendingFeatures; + PendingFeatures m_pending; + + void writeFeature(QTextStream &, + const Vamp::Plugin::Feature &f, + const Vamp::Plugin::Feature *optionalNextFeature); }; #endif