Changeset 11942 for trunk/FACT++
- Timestamp:
- 09/02/11 09:36:23 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/WindowLog.cc
r10498 r11942 111 111 //! Whether the log-file stream is open or not 112 112 // 113 bool WindowLog::OpenLogFile(const string &filename )113 bool WindowLog::OpenLogFile(const string &filename, bool append) 114 114 { 115 115 fMuxFile.lock(); … … 119 119 fLogFile.close(); 120 120 121 fLogFile.open(filename); 121 fLogFile.open(filename, append ? ios::app|ios::in|ios::out : ios::in|ios::out); 122 if (append) 123 fLogFile << '\n'; 124 122 125 fMuxFile.unlock(); 123 126 -
trunk/FACT++/src/WindowLog.h
r11529 r11942 108 108 109 109 /// Open a log-file 110 bool OpenLogFile(const std::string &filename );110 bool OpenLogFile(const std::string &filename, bool append=false); 111 111 112 112 /// Close a log-file
Note:
See TracChangeset
for help on using the changeset viewer.