Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGRedirectOutputGuard Class Reference

Definition at line 44 of file TGRedirectOutputGuard.h.

Public Member Functions

 TGRedirectOutputGuard (TGTextView *tv, const char *flog=0, const char *mode="a")
 Create output redirection guard. More...
 
virtual ~TGRedirectOutputGuard ()
 Destructor. More...
 
void Update ()
 Send to text frame the undisplayed content of the file. More...
 

Private Member Functions

 TGRedirectOutputGuard (const TGRedirectOutputGuard &)
 
TGRedirectOutputGuardoperator= (const TGRedirectOutputGuard &)
 

Private Attributes

TString fLogFile
 
FILE * fLogFileRead
 
TGTextViewfTextView
 
Bool_t fTmpFile
 

#include <TGRedirectOutputGuard.h>

Constructor & Destructor Documentation

◆ TGRedirectOutputGuard() [1/2]

TGRedirectOutputGuard::TGRedirectOutputGuard ( const TGRedirectOutputGuard )
private

◆ TGRedirectOutputGuard() [2/2]

TGRedirectOutputGuard::TGRedirectOutputGuard ( TGTextView tv,
const char *  flog = 0,
const char *  mode = "a" 
)

Create output redirection guard.

The TGTextView instance should be initialized outside. Text is added to the existing text in the frame. If defined, 'flog' is interpreted as the path of a file where to save the output; in such a case 'mode' if the opening mode of the file (either "w" or "a"). By default a temporary file is used.

Definition at line 59 of file TGRedirectOutputGuard.cxx.

◆ ~TGRedirectOutputGuard()

TGRedirectOutputGuard::~TGRedirectOutputGuard ( )
virtual

Destructor.

Definition at line 113 of file TGRedirectOutputGuard.cxx.

Member Function Documentation

◆ operator=()

TGRedirectOutputGuard& TGRedirectOutputGuard::operator= ( const TGRedirectOutputGuard )
private

◆ Update()

void TGRedirectOutputGuard::Update ( )

Send to text frame the undisplayed content of the file.

Definition at line 133 of file TGRedirectOutputGuard.cxx.

Member Data Documentation

◆ fLogFile

TString TGRedirectOutputGuard::fLogFile
private

Definition at line 47 of file TGRedirectOutputGuard.h.

◆ fLogFileRead

FILE* TGRedirectOutputGuard::fLogFileRead
private

Definition at line 50 of file TGRedirectOutputGuard.h.

◆ fTextView

TGTextView* TGRedirectOutputGuard::fTextView
private

Definition at line 49 of file TGRedirectOutputGuard.h.

◆ fTmpFile

Bool_t TGRedirectOutputGuard::fTmpFile
private

Definition at line 48 of file TGRedirectOutputGuard.h.

Libraries for TGRedirectOutputGuard:
[legend]

The documentation for this class was generated from the following files: