Changeset 822e655 in git
- Timestamp:
- Nov 6, 2009, 4:26:51 PM (14 years ago)
- Branches:
- (u'spielwiese', '5d369c3cbad1a1bf2d5c856a48fb8a30b51cec3b')
- Children:
- 3149a50a43e33a9af656fb04834e79a649ffa4d8
- Parents:
- 1e673422a85a7bbfd9b52b229b919da1922c36e1
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/PrettyPrinter.cc
r1e6734 r822e655 45 45 } 46 46 47 void PrettyPrinter::flush () 48 { 49 if (strcmp(m_fileName1, "") != 0) m_file1.close(); 50 if (strcmp(m_fileName2, "") != 0) m_file2.close(); 51 m_file1.open(m_fileName1, std::fstream::app); 52 m_file2.open(m_fileName2, std::fstream::app); 53 } 54 47 55 PrettyPrinter& PrettyPrinter::operator< (const char* s) 48 56 { -
Singular/PrettyPrinter.h
r1e6734 r822e655 93 93 94 94 /*! 95 * A method for writing all pending output to all defined output files. 96 * This works simply by closing all output files and re-opening them in 97 * append mode. 98 */ 99 void flush (); 100 101 /*! 95 102 * A method for including a linefeed in the output to the primary file 96 103 * (if any) and to the console (if console output has been declared accordingly).
Note: See TracChangeset
for help on using the changeset viewer.