Logo ROOT  
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
18class TGTextView;
19
21
22private:
27
28private:
31
32public:
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
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char mode
This class provides output redirection to a TGTextView in guaranteed exception safe way.
TGRedirectOutputGuard & operator=(const TGRedirectOutputGuard &)=delete
void Update()
Send to text frame the undisplayed content of the file.
TGRedirectOutputGuard(const TGRedirectOutputGuard &)=delete
virtual ~TGRedirectOutputGuard()
Destructor.
A TGTextView is a text viewer widget.
Definition TGTextView.h:22
Basic string class.
Definition TString.h:139