# HG changeset patch # User Chris Cannam # Date 1413385515 -3600 # Node ID 6b2a8b34e9d3d9a573af2ae303f33362e4c17784 # Parent 7d003fe48225c0fc4f811de075b4d7f0b9bc599b Add setNofM logic which the JSON writer can use to write a list when sending multiple files' worth to a single target diff -r 7d003fe48225 -r 6b2a8b34e9d3 transform/FeatureWriter.h --- a/transform/FeatureWriter.h Wed Oct 15 13:30:14 2014 +0100 +++ b/transform/FeatureWriter.h Wed Oct 15 16:05:15 2014 +0100 @@ -79,8 +79,15 @@ QString m_transformId; }; + /** + * Notify the writer that we are about to start extraction for + * input file N of M (where N is 1..M). May be useful when writing + * multiple outputs into a single file where some syntactic + * element is needed to connect them. + */ + virtual void setNofM(int /* N */, int /* M */) { } + // may throw FailedToOpenFile or other exceptions - virtual void write(QString trackid, const Transform &transform, const Vamp::Plugin::OutputDescriptor &output,