ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TGRedirectOutputGuard.h
Go to the documentation of this file.
1
// @(#)root/gui:$Id$
2
// Author: G. Ganis 10/10/2005
3
4
/*************************************************************************
5
* Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TGRedirectOutputGuard
13
#define ROOT_TGRedirectOutputGuard
14
15
16
#include "
TString.h
"
17
18
class
TGTextView
;
19
20
class
TGRedirectOutputGuard
{
21
22
private
:
23
TString
fLogFile
;
24
Bool_t
fTmpFile
;
25
TGTextView
*
fTextView
;
26
FILE *
fLogFileRead
;
27
28
private
:
29
TGRedirectOutputGuard
(
const
TGRedirectOutputGuard
&) =
delete
;
30
TGRedirectOutputGuard
&
operator=
(
const
TGRedirectOutputGuard
&) =
delete
;
31
32
public
:
33
TGRedirectOutputGuard
(
TGTextView
*tv,
34
const
char
*flog =
nullptr
,
const
char
*
mode
=
"a"
);
35
virtual
~TGRedirectOutputGuard
();
36
37
void
Update
();
// Update window with file content
38
39
ClassDef
(
TGRedirectOutputGuard
,0)
// Exception safe output redirection
40
};
41
42
#endif
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:342
mode
Option_t Option_t TPoint TPoint const char mode
Definition
TGWin32VirtualXProxy.cxx:68
TString.h
TGRedirectOutputGuard
This class provides output redirection to a TGTextView in guaranteed exception safe way.
Definition
TGRedirectOutputGuard.h:20
TGRedirectOutputGuard::operator=
TGRedirectOutputGuard & operator=(const TGRedirectOutputGuard &)=delete
TGRedirectOutputGuard::Update
void Update()
Send to text frame the undisplayed content of the file.
Definition
TGRedirectOutputGuard.cxx:141
TGRedirectOutputGuard::TGRedirectOutputGuard
TGRedirectOutputGuard(const TGRedirectOutputGuard &)=delete
TGRedirectOutputGuard::fLogFileRead
FILE * fLogFileRead
Definition
TGRedirectOutputGuard.h:26
TGRedirectOutputGuard::fTmpFile
Bool_t fTmpFile
Definition
TGRedirectOutputGuard.h:24
TGRedirectOutputGuard::~TGRedirectOutputGuard
virtual ~TGRedirectOutputGuard()
Destructor.
Definition
TGRedirectOutputGuard.cxx:121
TGRedirectOutputGuard::fLogFile
TString fLogFile
Definition
TGRedirectOutputGuard.h:23
TGRedirectOutputGuard::fTextView
TGTextView * fTextView
Definition
TGRedirectOutputGuard.h:25
TGTextView
A TGTextView is a text viewer widget.
Definition
TGTextView.h:22
TString
Basic string class.
Definition
TString.h:139
bool
gui
gui
inc
TGRedirectOutputGuard.h
ROOT master - Reference Guide Generated on Sat Nov 16 2024 09:38:04 (GVA Time) using Doxygen 1.9.8