52 const char *classname) :
TNamed(name, title)
59 if (!strcmp(classname,
"TSystemDirectory") ||
60 !strcmp(classname,
"TSystemFile")) {
94 if (obj->IsA()->GetMethodWithPrototype(
"SetDirectory",
"TDirectory*"))
104 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseDirectory(\"%s\");",
GetTitle()));
120 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseFile(\"%s\");",
GetName()));
142 static Int_t level = 0;
150 TList *files = dir.GetListOfFiles();
162 if (!strcmp(fname.
Data(),
"."))
164 else if (!strcmp(fname.
Data(),
".."))
170 sdirpath += fname.
Data();
210 void TRemoteObject::Streamer(
TBuffer &
b)
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetName() const
Returns name of object.
virtual const char * WorkingDirectory()
Return working directory.
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.
Bool_t TestBit(UInt_t f) const
virtual void SetName(const char *name)
Set the name of the TNamed.
Buffer base class used for serializing objects.
virtual void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
void ExecuteDefaultAction(TObject *obj)
Execute default action for selected object (action is specified in the $HOME/.root.mimes or $ROOTSYS/etc/root.mimes file).
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
R__EXTERN TApplication * gApplication
virtual Bool_t IsDirectory(const char *dir=0) const
Check if object is a directory.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
The TRemoteObject class provides protocol for browsing ROOT objects from a remote ROOT session...
The TNamed class is the base class for all named ROOT classes.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Describes an Operating System directory for the browser.
Using a TBrowser one can browse all ROOT objects.
R__EXTERN TSystem * gSystem
void SetRefreshFlag(Bool_t flag)
char * Form(const char *fmt,...)
Bool_t GetRefreshFlag() const
virtual ~TRemoteObject()
Delete remote object.
Mother of all ROOT objects.
A TSystemFile describes an operating system file.
virtual void Add(TObject *obj)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TList * Browse()
Browse OS system directories.
Bool_t GetFileStat(FileStat_t *sbuf)
Get remote file status.
virtual const char * GetTitle() const
Returns title of object.
TRemoteObject()
Create a remote object.
const char * Data() const