Mercurial > hg > svcore
comparison transform/FeatureWriter.h @ 1013:6370575a812c
Merge
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 17:10:29 +0000 |
parents | 6b2a8b34e9d3 |
children | 1cc96e03a903 |
comparison
equal
deleted
inserted
replaced
1012:ee9f4477f65b | 1013:6370575a812c |
---|---|
37 class FeatureWriter | 37 class FeatureWriter |
38 { | 38 { |
39 public: | 39 public: |
40 virtual ~FeatureWriter() { } | 40 virtual ~FeatureWriter() { } |
41 | 41 |
42 virtual string getDescription() const = 0; | |
43 | |
42 struct Parameter { // parameter of the writer, not the plugin | 44 struct Parameter { // parameter of the writer, not the plugin |
43 string name; | 45 string name; |
44 string description; | 46 string description; |
45 bool hasArg; | 47 bool hasArg; |
46 }; | 48 }; |
75 protected: | 77 protected: |
76 QString m_trackId; | 78 QString m_trackId; |
77 QString m_transformId; | 79 QString m_transformId; |
78 }; | 80 }; |
79 | 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 | |
80 // may throw FailedToOpenFile or other exceptions | 90 // may throw FailedToOpenFile or other exceptions |
81 | |
82 virtual void write(QString trackid, | 91 virtual void write(QString trackid, |
83 const Transform &transform, | 92 const Transform &transform, |
84 const Vamp::Plugin::OutputDescriptor &output, | 93 const Vamp::Plugin::OutputDescriptor &output, |
85 const Vamp::Plugin::FeatureList &features, | 94 const Vamp::Plugin::FeatureList &features, |
86 std::string summaryType = "") = 0; | 95 std::string summaryType = "") = 0; |