80 Error(
"TGRedirectOutputGuard",
"could create temp file");
92 Error(
"TGRedirectOutputGuard",
93 "no write or read permission on file: %s",
flog);
100 const char *
m = (
mode[0] !=
'a' &&
mode[0] !=
'w') ?
"a" :
mode;
102 Error(
"TGRedirectOutputGuard",
"could not redirect output");
111 Error(
"TGRedirectOutputGuard",
"could not open file in read mode");
144 Warning(
"Update",
"no TGTextView defined");
149 Warning(
"Update",
"no file open for reading");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char mode
R__EXTERN TSystem * gSystem
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.
virtual void AddLine(const char *string)
Add a line of text to the view widget.
const char * Data() const
virtual FILE * TempFileName(TString &base, const char *dir=nullptr, const char *suffix=nullptr)
Create a secure temporary file by appending a unique 6 letter string to base.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=nullptr)
Redirect standard output (stdout, stderr) to the specified file.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual int Unlink(const char *name)
Unlink, i.e.