20 #ifndef STELSCRIPTOUTPUT_HPP 21 #define STELSCRIPTOUTPUT_HPP 33 static void init(
const QString& outputFilePath);
44 static void reset(
void);
53 static QFile outputFile;
54 static QString outputText;
57 #endif // STELSCRIPTOUTPUT_HPP static void deinit()
Deinitialize the output file.
static void writeLog(QString msg)
Write the message plus a newline to the output file at $USERDIR/output.txt.
static void init(const QString &outputFilePath)
Create and initialize the log file.
static void saveOutputAs(const QString &name)
Save to new file, re-create output file.
static void reset(void)
Reset file, i.e., empty it. This may be useful to have repetitive output which may be read by other p...
Class with only static members used to manage output for Stellarium scripts.