37 :
TNamed(filename, dirname)
57 flags =
id =
size = modtime = 0;
58 gSystem->GetPathInfo(!dir ?
fName.Data() : dir, &
id, &
size, &flags, &modtime);
71 b->ExecuteDefaultAction(
this);
80 const char *ed =
gEnv->GetValue(
"Editor",
"vi");
83 if (!strcmp(ed,
"vi"))
88 const char *ed =
gEnv->GetValue(
"Editor",
"notepad");
106 if (
name.EndsWith(
"/"))
name.Chop();
114 Warning(
"Copy",
"File %s already exists",
name.Data());
115 }
else if (status == -1) {
116 Warning(
"Copy",
"Failed to move file %s",
name.Data());
126 Warning(
"Move",
"No file/dir name specified");
133 if (
name.EndsWith(
"/"))
name.Chop();
141 }
else if (status == -2) {
142 Warning(
"Move",
"File %s already exists",
name.Data());
143 }
else if (status == -1) {
144 Warning(
"Move",
"Failed to move file %s",
name.Data());
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
char Char_t
Character 1 byte (char).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
long long Long64_t
Portable signed long integer 8 bytes.
Using a TBrowser one can browse all ROOT objects.
const char * GetName() const override
Returns name of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
@ kCanDelete
if object in a list can be deleted
TSystemFile()
TSystemFile default constructor.
void Dump() const override
dump this file
virtual void Move(const char *to)
move this file
virtual void Delete()
delete this file
virtual void Rename(const char *name)
rename this file
virtual void Edit()
Invoke text editor on this file.
void Browse(TBrowser *b) override
Execute default action for this system file (action is specified in the $HOME/.root....
void Inspect() const override
inspect this file
virtual void Copy(const char *to)
copy this file
virtual Bool_t IsDirectory(const char *dir=nullptr) const
Check if object is a directory.
virtual ~TSystemFile()
Delete TSystemFile object.