port from 1.4.4 (rev. 1925 fixed SF# 3483174)

This commit is contained in:
Aleksandar Fabijanic
2012-08-22 03:25:25 +00:00
parent d9cf671330
commit 801b2485f4
13 changed files with 94 additions and 21 deletions

View File

@@ -68,9 +68,11 @@ public:
~LogFile();
/// Destroys the LogFile.
void write(const std::string& text);
void write(const std::string& text, bool flush = true);
/// Writes the given text to the log file.
/// If flush is true, the text will be immediately
/// flushed to the file.
UInt64 size() const;
/// Returns the current size in bytes of the log file.
@@ -85,9 +87,9 @@ public:
//
// inlines
//
inline void LogFile::write(const std::string& text)
inline void LogFile::write(const std::string& text, bool flush)
{
writeImpl(text);
writeImpl(text, flush);
}