Changeset 2058 for trunk/MagicSoft/Mars/mbase/MLog.h
- Timestamp:
- 05/05/03 10:37:08 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.h
r2054 r2058 18 18 19 19 20 class TG ListBox;20 class TGTextView; 21 21 22 22 class MLog : public streambuf, public ostream, public TObject … … 54 54 Bool_t fIsNull; //! Switch output completely off 55 55 56 Int_t fGuiLineId; //! 57 58 ofstream *fout; //! possible file output stream 59 Bool_t fOutAllocated; //! flag if fout is created by MLogging 60 TGListBox *fgui; //! Listbox output 56 ofstream *fout; //! possible file output stream 57 Bool_t fOutAllocated; //! flag if fout is created by MLogging 58 TGTextView *fgui; //! Text View output 61 59 62 60 Bool_t fIsDirectGui; //! Pipe text directly to the GUI (for single threaded environments) … … 84 82 MLog(int i=eStdout); 85 83 MLog(ofstream &out); 86 MLog(TG ListBox&out);84 MLog(TGTextView &out); 87 85 MLog(const char *fname, int flag=-1); 88 86 … … 97 95 void UpdateGui(); 98 96 97 void Underline(); 98 99 99 void SetDebugLevel(int i) { fDebugLevel = i; } 100 100 int GetDebugLevel() const { return fDebugLevel; } … … 104 104 void DisableOutputDevice(Flags_t f) { fDevice &= ~f; } 105 105 void operator=(ofstream &out) { SetOutputFile(out); } 106 void operator=(TG ListBox *out){ SetOutputGui(out); }106 void operator=(TGTextView *out) { SetOutputGui(out); } 107 107 108 108 Bool_t IsOutputDeviceEnabled(int i) const { return fDevice & i; } 109 109 110 void SetOutputGui(TG ListBox*out, int flag=-1)110 void SetOutputGui(TGTextView *out, int flag=-1) 111 111 { 112 112 fgui = out;
Note:
See TracChangeset
for help on using the changeset viewer.