svcore
1.9
|
FileFeatureWriter.cpp
Go to the documentation of this file.
49 SVCERR << "FileFeatureWriter::FileFeatureWriter: ERROR: Invalid support specification " << support << endl;
78 p.description = "Base output directory path. (The default is the same directory as the input file.) The directory must exist already.";
85 p.description = "Create a separate output file for every combination of input file and transform. The output file names will be based on the input file names. (The default is to create one output file per input audio file, and write all transform results for that input into it.)";
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.)";
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.)";
133 SVCERR << "FileFeatureWriter::setParameters: WARNING: Both one-file and many-files parameters provided, ignoring many-files" << endl;
147 // SVCERR << "FileFeatureWriter::setParameters: WARNING: Both many-files and one-file parameters provided, ignoring one-file" << endl;
156 SVCERR << "FileFeatureWriter::setParameters: WARNING: Both stdout and one-file provided, ignoring stdout" << endl;
175 SVCERR << endl << "FileFeatureWriter: ERROR: Specified output file \"" << m_singleFileName << "\" exists and neither --" << getWriterTag() << "-force nor --" << getWriterTag() << "-append flag is specified -- not overwriting" << endl;
176 SVCERR << "NOTE: To find out how to fix this problem, read the help for the --" << getWriterTag() << "-force" << endl << "and --" << getWriterTag() << "-append options" << endl;
222 SVCERR << endl << "FileFeatureWriter: ERROR: Output file \"" << filename << "\" exists (for input file or URL \"" << trackId << "\" and transform \"" << transformId << "\") and neither --" << getWriterTag() << "-force nor --" << getWriterTag() << "-append is specified -- not overwriting" << endl;
223 SVCERR << "NOTE: To find out how to fix this problem, read the help for the --" << getWriterTag() << "-force" << endl << "and --" << getWriterTag() << "-append options" << endl;
QString createOutputFilename(QString, TransformId)
Definition: FileFeatureWriter.cpp:170
Definition: Exceptions.h:36
QFile * getOutputFile(QString, TransformId)
Definition: FileFeatureWriter.cpp:277
QTextStream * getOutputStream(QString, TransformId, QTextCodec *)
Definition: FileFeatureWriter.cpp:317
void testOutputFile(QString trackId, TransformId transformId) override
Throw FailedToOpenOutputStream if we can already tell that we will be unable to write to the output f...
Definition: FileFeatureWriter.cpp:231
Definition: FeatureWriter.h:44
void setParameters(map< string, string > ¶ms) override
Definition: FileFeatureWriter.cpp:123
TrackTransformPair getFilenameKey(QString, TransformId)
Definition: FileFeatureWriter.cpp:249
virtual QString getWriterTag() const =0
virtual ~FileFeatureWriter()
Definition: FileFeatureWriter.cpp:54
pair< QString, TransformId > TrackTransformPair
Definition: FileFeatureWriter.h:61
QString getOutputFilename(QString, TransformId)
Definition: FileFeatureWriter.cpp:266
FileFeatureWriter(int support, QString extension)
Definition: FileFeatureWriter.cpp:33
ParameterList getSupportedParameters() const override
Definition: FileFeatureWriter.cpp:72
virtual void reviewFileForAppending(QString)
Definition: FileFeatureWriter.h:85
Generated by 1.8.11