Changeset 14443 for trunk/Mars/mbase
- Timestamp:
- 10/02/12 11:11:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MLog.h
r8877 r14443 75 75 Bool_t fIsNull; //! Switch output completely off 76 76 77 ofstream *fOut;//! possible file output stream77 std::ofstream *fOut; //! possible file output stream 78 78 Bool_t fOutAllocated; //! flag if fout is created by MLogging 79 79 TGTextView *fGui; //! Text View output … … 101 101 void ReallocateFile(const char *f); 102 102 void CheckFlag(Flags_t chk, int flag); 103 void Output( ostream &out, int len);103 void Output(std::ostream &out, int len); 104 104 void AddGuiLine(const TString& line); 105 105 … … 113 113 114 114 MLog(int i=eStdout); 115 MLog( ofstream &out);115 MLog(std::ofstream &out); 116 116 MLog(TGTextView &out); 117 117 MLog(const char *fname, int flag=-1); 118 118 119 MLog(MLog const& log) : std::ios(), std::streambuf(), ostream((std::streambuf*)&log), TObject()119 MLog(MLog const& log) : std::ios(), std::streambuf(), std::ostream((std::streambuf*)&log), TObject() 120 120 { 121 121 fOutputLevel = log.fOutputLevel; … … 147 147 void EnableOutputDevice(Flags_t f) { fDevice |= f; } 148 148 void DisableOutputDevice(Flags_t f) { fDevice &= ~f; } 149 void operator=( ofstream &sout){ SetOutputFile(sout); }149 void operator=(std::ofstream &sout) { SetOutputFile(sout); } 150 150 void operator=(TGTextView *sout) { SetOutputGui(sout); } 151 151 //void SetAutoIntro(Bool_t b=kTRUE) { b ? SetBit(kIsAutoIntro) : SetBit(kIsAutoIntro); } … … 160 160 } 161 161 162 void SetOutputFile( ofstream &sout, int flag=-1)162 void SetOutputFile(std::ofstream &sout, int flag=-1) 163 163 { 164 164 // … … 187 187 } 188 188 189 ofstream &GetOutputFile()189 std::ofstream &GetOutputFile() 190 190 { 191 191 //
Note:
See TracChangeset
for help on using the changeset viewer.