00001 // ===================================================================== 00002 // $Id: TOutputStream.cc,v 1.3 2004/06/28 04:50:30 goiwai Exp $ 00003 // $Name: CLDAQ-1-14-03 $ 00004 // $Log: TOutputStream.cc,v $ 00005 // Revision 1.3 2004/06/28 04:50:30 goiwai 00006 // GetLogLevel()を追加しました。 00007 // 00008 // Revision 1.2 2004/06/28 04:02:50 goiwai 00009 // TlogをTclogに変更 00010 // 00011 // Revision 1.1 2004/06/24 15:17:51 goiwai 00012 // std::cout等をやめて、TOutputStreamのオブジェクトTcoutを使うことにした。理由は、出力前に皮をかぶせてやりたかったから。 00013 // SystemActionのCatch〜で設定できる。 00014 // 00015 // ===================================================================== 00016 #include "TOutputStream.hh" 00017 #include "TStringStreamBuffer.hh" 00018 00019 TOutputStream::TOutputStream( TStringStreamBuffer* buffer ) 00020 : std::ostream( buffer ) 00021 {;} 00022 00023 void TOutputStream::SetLogLevel( int level ) 00024 { 00025 ( (TStringStreamBuffer*)_M_streambuf ) -> SetLogLevel( level ); 00026 return; 00027 } 00028 00029 int TOutputStream::GetLogLevel() const 00030 { 00031 return ( (TStringStreamBuffer*)_M_streambuf ) -> GetLogLevel(); 00032 } 00033 00034 TOutputStream Tcout( &coutbuf ); 00035 TOutputStream Tcerr( &cerrbuf ); 00036 TOutputStream Tclog( &clogbuf ); 00037 00038 #ifdef __CLDAQ_ROOT_DLL 00039 ClassImp(TOutputStream) 00040 #endif