Changeset 822e655 in git


Ignore:
Timestamp:
Nov 6, 2009, 4:26:51 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '5d369c3cbad1a1bf2d5c856a48fb8a30b51cec3b')
Children:
3149a50a43e33a9af656fb04834e79a649ffa4d8
Parents:
1e673422a85a7bbfd9b52b229b919da1922c36e1
Message:
new method flush()

git-svn-id: file:///usr/local/Singular/svn/trunk@12254 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/PrettyPrinter.cc

    r1e6734 r822e655  
    4545}
    4646
     47void 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
    4755PrettyPrinter& PrettyPrinter::operator< (const char* s)
    4856{
  • Singular/PrettyPrinter.h

    r1e6734 r822e655  
    9393 
    9494  /*!
     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  /*!
    95102   *  A method for including a linefeed in the output to the primary file
    96103   *  (if any) and to the console (if console output has been declared accordingly).
Note: See TracChangeset for help on using the changeset viewer.