59 if (!strcmp(classname,
"TSystemDirectory") ||
60 !strcmp(classname,
"TSystemFile")) {
85 b->ExecuteDefaultAction(
this);
89 if (
b->GetRefreshFlag())
95 gROOT->ProcessLine(
Form(
"((%s *)0x%zx)->SetDirectory(0);", obj->
ClassName(), (
size_t)obj));
101 if (
b->GetRefreshFlag())
104 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseDirectory(\"%s\");",
GetTitle()));
117 if (
b->GetRefreshFlag())
120 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseFile(\"%s\");",
GetName()));
157 fname =
file->GetName();
158 if (
file->IsDirectory()) {
160 if (!strcmp(fname.
Data(),
"."))
162 else if (!strcmp(fname.
Data(),
".."))
168 sdirpath += fname.
Data();
177 fname =
file->GetName();
178 if (!
file->IsDirectory()) {
R__EXTERN TApplication * gApplication
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
Using a TBrowser one can browse all ROOT objects.
Buffer base class used for serializing objects.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
void Add(TObject *obj) override
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
void Streamer(TBuffer &) override
Stream an object of class TObject.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual TClass * IsA() const
The TRemoteObject class provides protocol for browsing ROOT objects from a remote ROOT session.
virtual ~TRemoteObject()
Delete remote object.
TList * Browse()
Browse OS system directories.
Bool_t GetFileStat(FileStat_t *sbuf)
Get remote file status.
TRemoteObject()
Create a remote object.
void Streamer(TBuffer &) override
Remote object streamer.
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.
A TSystemFile describes an operating system file.
int GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
Get info about a file: id, size, flags, modification time.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * WorkingDirectory()
Return working directory.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.