comparison runner/FeatureWriterFactory.cpp @ 136:2260947be4aa midi

Stub out MIDI export
author Chris Cannam
date Mon, 13 Oct 2014 10:56:27 +0100
parents 92911f967a16
children 3921e0c1f4dd 6ff4da31db8b
comparison
equal deleted inserted replaced
135:caf05503bf42 136:2260947be4aa
17 #include "FeatureWriterFactory.h" 17 #include "FeatureWriterFactory.h"
18 18
19 #include "DefaultFeatureWriter.h" 19 #include "DefaultFeatureWriter.h"
20 #include "rdf/RDFFeatureWriter.h" 20 #include "rdf/RDFFeatureWriter.h"
21 #include "AudioDBFeatureWriter.h" 21 #include "AudioDBFeatureWriter.h"
22 #include "MIDIFeatureWriter.h"
22 #include "transform/CSVFeatureWriter.h" 23 #include "transform/CSVFeatureWriter.h"
23 24
24 set<string> 25 set<string>
25 FeatureWriterFactory::getWriterTags() 26 FeatureWriterFactory::getWriterTags()
26 { 27 {
27 set<string> tags; 28 set<string> tags;
28 tags.insert("default"); 29 tags.insert("default");
29 tags.insert("rdf"); 30 tags.insert("rdf");
30 tags.insert("audiodb"); 31 tags.insert("audiodb");
31 tags.insert("csv"); 32 tags.insert("csv");
33 tags.insert("midi");
32 return tags; 34 return tags;
33 } 35 }
34 36
35 FeatureWriter * 37 FeatureWriter *
36 FeatureWriterFactory::createWriter(string tag) 38 FeatureWriterFactory::createWriter(string tag)
41 return new RDFFeatureWriter(); 43 return new RDFFeatureWriter();
42 } else if (tag == "audiodb") { 44 } else if (tag == "audiodb") {
43 return new AudioDBFeatureWriter(); 45 return new AudioDBFeatureWriter();
44 } else if (tag == "csv") { 46 } else if (tag == "csv") {
45 return new CSVFeatureWriter(); 47 return new CSVFeatureWriter();
48 } else if (tag == "midi") {
49 return new MIDIFeatureWriter();
46 } 50 }
47 51
48 return 0; 52 return 0;
49 } 53 }