StelScriptOutput.hpp   StelScriptOutput.hpp 
skipping to change at line 27 skipping to change at line 27
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef STELSCRIPTOUTPUT_HPP #ifndef STELSCRIPTOUTPUT_HPP
#define STELSCRIPTOUTPUT_HPP #define STELSCRIPTOUTPUT_HPP
#include <QString> #include <QString>
#include <QFile> #include <QFile>
//! @class StelScriptOutput //! @class StelScriptOutput
//! Class wit only static members used to manage output for Stellarium scri pts. //! Class with only static members used to manage output for Stellarium scr ipts.
class StelScriptOutput class StelScriptOutput
{ {
public: public:
//! Create and initialize the log file. //! Create and initialize the log file.
//! Prepend system information before any output. //! Prepend system information before any output.
static void init(const QString& outputFilePath); static void init(const QString& outputFilePath);
//! Deinitialize the output file. //! Deinitialize the output file.
//! Must be called after init() was called. //! Must be called after init() was called.
static void deinit(); static void deinit();
//! Write the message plus a newline to the output file at $USERDIR/ output.txt. //! Write the message plus a newline to the output file at $USERDIR/ output.txt.
//! @param msg message to write. //! @param msg message to write.
static void writeLog(QString msg); static void writeLog(QString msg);
//! Reset file, i.e., empty it. This may be useful to have repetitiv
e output which may be read by other programs.
static void reset(void);
private: private:
static QFile outputFile; static QFile outputFile;
static QString outputText; static QString outputText;
}; };
#endif // STELSCRIPTOUTPUT_HPP #endif // STELSCRIPTOUTPUT_HPP
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/