// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4strstreambuf.hh,v 1.8 2001/07/11 10:00:55 gunter Exp $ // GEANT4 tag $Name: geant4-05-00 $ // // // --------------------------------------------------------------- // GEANT 4 class header file // // G4strstrambuf.hh // // --------------------------------------------------------------- #ifndef G4STRSTREAM_HH #define G4STRSTREAM_HH #include "g4std/strstream" #include "globals.hh" #include "G4coutDestination.hh" class G4strstreambuf; extern G4strstreambuf G4coutbuf; extern G4strstreambuf G4cerrbuf; class G4strstreambuf : public G4std::streambuf { public: G4strstreambuf(); ~G4strstreambuf(); inline void SetDestination(G4coutDestination * value); inline G4int overflow(G4int c=EOF); inline G4int sync(); #ifdef WIN32 inline G4int underflow(); #endif inline G4int ReceiveString (); private: G4strstreambuf(const G4strstreambuf&); G4strstreambuf& operator=(const G4strstreambuf&); private: G4coutDestination * destination; char* buffer; G4int count,size; }; #include "G4strstreambuf.icc" #endif