Mercurial > hg > svcore
comparison transform/FileFeatureWriter.cpp @ 663:badbbf0921fa
Merge
author | Chris Cannam |
---|---|
date | Mon, 25 Oct 2010 11:09:02 +0200 |
parents | cd1fa6387cb9 |
children | b4a8d8221eaf |
comparison
equal
deleted
inserted
replaced
662:6502c33b1cb1 | 663:badbbf0921fa |
---|---|
88 } | 88 } |
89 | 89 |
90 if (m_support & SupportOneFileTotal) { | 90 if (m_support & SupportOneFileTotal) { |
91 if (m_support & ~SupportOneFileTotal) { // not only option | 91 if (m_support & ~SupportOneFileTotal) { // not only option |
92 p.name = "one-file"; | 92 p.name = "one-file"; |
93 p.description = "Write all transform results for all input files into the single named output file."; | 93 if (m_support & SupportOneFilePerTrack) { |
94 p.description = "Write all transform results for all input files into the single named output file. (The default is to create one output file per input audio file, and write all transform results for that input into it.)"; | |
95 } else { | |
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 } | |
94 p.hasArg = true; | 98 p.hasArg = true; |
95 pl.push_back(p); | 99 pl.push_back(p); |
96 } | 100 } |
97 p.name = "stdout"; | 101 p.name = "stdout"; |
98 p.description = "Write all transform results directly to standard output."; | 102 p.description = "Write all transform results directly to standard output."; |
130 } | 134 } |
131 } | 135 } |
132 } else if (i->first == "one-file") { | 136 } else if (i->first == "one-file") { |
133 if (m_support & SupportOneFileTotal) { | 137 if (m_support & SupportOneFileTotal) { |
134 if (m_support & ~SupportOneFileTotal) { // not only option | 138 if (m_support & ~SupportOneFileTotal) { // not only option |
135 if (m_manyFiles) { | 139 // No, we cannot do this test because m_manyFiles |
136 cerr << "FileFeatureWriter::setParameters: WARNING: Both many-files and one-file parameters provided, ignoring one-file" << endl; | 140 // may be on by default (for any FileFeatureWriter |
137 } else { | 141 // that supports OneFilePerTrackTransform but not |
142 // OneFilePerTrack), so we need to be able to | |
143 // override it | |
144 // if (m_manyFiles) { | |
145 // cerr << "FileFeatureWriter::setParameters: WARNING: Both many-files and one-file parameters provided, ignoring one-file" << endl; | |
146 // } else { | |
138 m_singleFileName = i->second.c_str(); | 147 m_singleFileName = i->second.c_str(); |
139 } | 148 // } |
140 } | 149 } |
141 } | 150 } |
142 } else if (i->first == "stdout") { | 151 } else if (i->first == "stdout") { |
143 if (m_support & SupportOneFileTotal) { | 152 if (m_support & SupportOneFileTotal) { |
144 if (m_singleFileName != "") { | 153 if (m_singleFileName != "") { |