59 if (!dir)
return nullptr;
61 const char *file =
nullptr;
64 while ((file =
gSystem->GetDirEntry(dir))) {
67 if (file[0] ==
'.' && file[1] ==
'\0')
69 else if (file[0] ==
'.' && file[1] ==
'.' && file[2] ==
'.')
104 gSystem->ChangeDirectory(dirfile);
105 flags =
id =
size = modtime = 0;
109 gSystem->ChangeDirectory(savDir);
139 while ((file =
gSystem->GetDirEntry(dir))) {
144 if (!strcmp(file,
"."))
146 else if (!strcmp(file,
".."))
177 for (
int i = 0; i <
size; i++) {
192 for (
int i = 0; i <
size; i++) {
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
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.
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
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.