Mercurial > hg > svcore
comparison transform/FileFeatureWriter.cpp @ 997:2104ea2204d2
Separate out stdout ability (not all writers that support one-file will necessarily want to support it, e.g. for binary formats)
author | Chris Cannam |
---|---|
date | Mon, 13 Oct 2014 10:56:16 +0100 |
parents | f5cd33909744 |
children | 694301cc71cc |
comparison
equal
deleted
inserted
replaced
996:0d3d1ec7dfde | 997:2104ea2204d2 |
---|---|
96 p.description = "Write all transform results for all input files into the single named output file. (The default is to create a separate output file for each combination of input audio file and transform.)"; | 96 p.description = "Write all transform results for all input files into the single named output file. (The default is to create a separate output file for each combination of input audio file and transform.)"; |
97 } | 97 } |
98 p.hasArg = true; | 98 p.hasArg = true; |
99 pl.push_back(p); | 99 pl.push_back(p); |
100 } | 100 } |
101 } | |
102 if (m_support & SupportStdOut) { | |
101 p.name = "stdout"; | 103 p.name = "stdout"; |
102 p.description = "Write all transform results directly to standard output."; | 104 p.description = "Write all transform results directly to standard output."; |
103 p.hasArg = false; | 105 p.hasArg = false; |
104 pl.push_back(p); | 106 pl.push_back(p); |
105 } | 107 } |
147 m_singleFileName = i->second.c_str(); | 149 m_singleFileName = i->second.c_str(); |
148 // } | 150 // } |
149 } | 151 } |
150 } | 152 } |
151 } else if (i->first == "stdout") { | 153 } else if (i->first == "stdout") { |
152 if (m_support & SupportOneFileTotal) { | 154 if (m_support & SupportStdOut) { |
153 if (m_singleFileName != "") { | 155 if (m_singleFileName != "") { |
154 SVDEBUG << "FileFeatureWriter::setParameters: WARNING: Both stdout and one-file provided, ignoring stdout" << endl; | 156 SVDEBUG << "FileFeatureWriter::setParameters: WARNING: Both stdout and one-file provided, ignoring stdout" << endl; |
155 } else { | 157 } else { |
156 m_stdout = true; | 158 m_stdout = true; |
157 } | 159 } |