14 QTextStream &
newline(QTextStream& s);
21 QTextStream &
space(QTextStream& s);
brief A class to generate file names using the SimulationParameters
Definition: output.h:44
QTextStream & space(QTextStream &s)
put a space in the stream that ignores the streams current FieldWidth
const OutputInfo & info()
Get the info object to get things like file name and path.
QTextStream & newline(QTextStream &s)
put a newline character in the stream that ignores the streams current FieldWidth ...
OutputInfo m_info
< OutputInfo object that generated file name
Definition: output.h:115
QFile m_file
Definition: output.h:118
A struct to store all simulation options.
Definition: parameters.h:46
void backupFile(const QString &name)
Back up a file.
const QFile & file()
Get the file object, though you probably have no need for it.
OutputInfo(const QString &name, const SimulationParameters *par=0)
Generate file name according to SimulationParameters.
OutputStream(const QString &name, const SimulationParameters *par=0, QObject *parent=0)
Setup the QTextStream, QFile, and OutputInfo.
~OutputStream()
flush the stream and close the file
A class to combine QFile, QTextStream and OutputInfo (QFileInfo).
Definition: output.h:69