60 if (!dir)
return nullptr;
62 const char *file =
nullptr;
65 while ((file =
gSystem->GetDirEntry(dir))) {
68 if (file[0] ==
'.' && file[1] ==
'\0')
70 else if (file[0] ==
'.' && file[1] ==
'.' && file[2] ==
'.')
105 gSystem->ChangeDirectory(dirfile);
106 flags =
id =
size = modtime = 0;
110 gSystem->ChangeDirectory(savDir);
140 while ((file =
gSystem->GetDirEntry(dir))) {
145 if (!strcmp(file,
"."))
147 else if (!strcmp(file,
".."))
178 for (
int i = 0;
i <
size;
i++) {
193 for (
int i = 0;
i <
size;
i++) {
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
R__EXTERN TSystem * gSystem
Using a TBrowser one can browse all ROOT objects.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
void Add(TObject *obj) override
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
Describes an Operating System directory for the browser.
virtual TList * GetListOfFiles() const
Returns a TList of TSystemFile objects representing the contents of the directory.
virtual void SetDirectory(const char *name)
Create a system directory object.
virtual ~TSystemDirectory()
Delete system directory object.
TSystemFile * FindFileObj(const char *name, const char *dir)
Method that returns system file object if it exists in list, 0 otherwise.
TSystemDirectory()
Create a system directory object.
Bool_t IsItDirectory(const char *name) const
Check if name is a directory.
TSystemDirectory(const TSystemDirectory &)=delete
TOrdCollection * fFilesInBrowser
void SetName(const char *name) override
Set the name of the TNamed.
TSystemDirectory * FindDirObj(const char *name)
Method that returns system directory object if it exists in list, 0 otherwise.
void Browse(TBrowser *b) override
Browse OS system directories.
void SetTitle(const char *title) override
Set the title of the TNamed.
TOrdCollection * fDirsInBrowser
TSystemFile()
TSystemFile default constructor.