comparison 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
comparison
equal deleted inserted replaced
156:0fd5c3c28814 157:946115b8badd
49 const Transform &transform, 49 const Transform &transform,
50 const Vamp::Plugin::OutputDescriptor &output, 50 const Vamp::Plugin::OutputDescriptor &output,
51 const Vamp::Plugin::FeatureList &features, 51 const Vamp::Plugin::FeatureList &features,
52 std::string summaryType = ""); 52 std::string summaryType = "");
53 53
54 virtual void finish();
55
54 virtual QString getWriterTag() const { return "lab"; } 56 virtual QString getWriterTag() const { return "lab"; }
55 57
56 private: 58 private:
57 bool m_forceEnd; 59 bool m_forceEnd;
60
61 typedef map<TrackTransformPair, Vamp::Plugin::Feature> PendingFeatures;
62 PendingFeatures m_pending;
63
64 void writeFeature(QTextStream &,
65 const Vamp::Plugin::Feature &f,
66 const Vamp::Plugin::Feature *optionalNextFeature);
58 }; 67 };
59 68
60 #endif 69 #endif