ROOT
Version master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
▼
gui
►
browsable
►
browserv7
►
canvaspainter
doc
►
fitpanel
►
fitpanelv7
►
ged
▼
gui
doc
▼
inc
►
HelpText.h
TG3DLine.h
TGApplication.h
►
TGButton.h
TGButtonGroup.h
►
TGCanvas.h
►
TGClient.h
TGColorDialog.h
TGColorSelect.h
►
TGComboBox.h
TGCommandPlugin.h
TGDimension.h
►
TGDNDManager.h
►
TGDockableFrame.h
►
TGDoubleSlider.h
TGEventHandler.h
TGFileBrowser.h
►
TGFileDialog.h
►
TGFont.h
►
TGFontDialog.h
►
TGFrame.h
►
TGFSComboBox.h
►
TGFSContainer.h
►
TGGC.h
TGIcon.h
TGIdleHandler.h
►
TGImageMap.h
TGInputDialog.h
TGLabel.h
►
TGLayout.h
TGListBox.h
►
TGListTree.h
►
TGListView.h
TGMdi.h
►
TGMdiDecorFrame.h
TGMdiFrame.h
►
TGMdiMainFrame.h
►
TGMdiMenu.h
►
TGMenu.h
TGMimeTypes.h
►
TGMsgBox.h
►
TGNumberEntry.h
TGObject.h
►
TGPack.h
TGPasswdDialog.h
►
TGPicture.h
►
TGProgressBar.h
TGRedirectOutputGuard.h
TGResourcePool.h
►
TGScrollBar.h
TGShapedFrame.h
►
TGShutter.h
TGSimpleTable.h
TGSimpleTableInterface.h
►
TGSlider.h
TGSpeedo.h
►
TGSplitFrame.h
►
TGSplitter.h
TGStatusBar.h
TGString.h
TGTab.h
►
TGTable.h
TGTableCell.h
TGTableContainer.h
►
TGTableHeader.h
►
TGTableLayout.h
►
TGText.h
TGTextBuffer.h
TGTextEdit.h
►
TGTextEditDialogs.h
TGTextEditor.h
TGTextEntry.h
►
TGTextView.h
►
TGTextViewStream.h
►
TGToolBar.h
TGToolTip.h
TGTripleSlider.h
►
TGuiBuilder.h
►
TGView.h
►
TGWidget.h
TGWindow.h
TGXYLayout.h
TRootApplication.h
TRootBrowser.h
TRootBrowserLite.h
TRootCanvas.h
TRootContextMenu.h
TRootControlBar.h
TRootDialog.h
TRootEmbeddedCanvas.h
TRootGuiFactory.h
TRootHelpDialog.h
►
TVirtualDragManager.h
►
WidgetMessageTypes.h
►
src
►
guibuilder
►
guihtml
►
recorder
►
sessionviewer
►
webdisplay
►
webgui6
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
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 Wed Apr 2 2025 07:35:14 (GVA Time) using Doxygen 1.10.0