Mercurial > hg > svcore
comparison transform/FeatureWriter.h @ 1005:6b2a8b34e9d3
Add setNofM logic which the JSON writer can use to write a list when sending multiple files' worth to a single target
author | Chris Cannam |
---|---|
date | Wed, 15 Oct 2014 16:05:15 +0100 |
parents | e25dc8d57565 |
children | 1cc96e03a903 |
comparison
equal
deleted
inserted
replaced
1004:7d003fe48225 | 1005:6b2a8b34e9d3 |
---|---|
77 protected: | 77 protected: |
78 QString m_trackId; | 78 QString m_trackId; |
79 QString m_transformId; | 79 QString m_transformId; |
80 }; | 80 }; |
81 | 81 |
82 /** | |
83 * Notify the writer that we are about to start extraction for | |
84 * input file N of M (where N is 1..M). May be useful when writing | |
85 * multiple outputs into a single file where some syntactic | |
86 * element is needed to connect them. | |
87 */ | |
88 virtual void setNofM(int /* N */, int /* M */) { } | |
89 | |
82 // may throw FailedToOpenFile or other exceptions | 90 // may throw FailedToOpenFile or other exceptions |
83 | |
84 virtual void write(QString trackid, | 91 virtual void write(QString trackid, |
85 const Transform &transform, | 92 const Transform &transform, |
86 const Vamp::Plugin::OutputDescriptor &output, | 93 const Vamp::Plugin::OutputDescriptor &output, |
87 const Vamp::Plugin::FeatureList &features, | 94 const Vamp::Plugin::FeatureList &features, |
88 std::string summaryType = "") = 0; | 95 std::string summaryType = "") = 0; |