51 const char *classname) :
TNamed(name, title)
58 if (!strcmp(classname,
"TSystemDirectory") ||
59 !strcmp(classname,
"TSystemFile")) {
93 if (obj->IsA()->GetMethodWithPrototype(
"SetDirectory",
"TDirectory*"))
103 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseDirectory(\"%s\");",
GetTitle()));
119 ret = (
TList *)
gROOT->ProcessLine(
Form(
"((TApplicationServer *)gApplication)->BrowseFile(\"%s\");",
GetName()));
141 static Int_t level = 0;
149 TList *files = dir.GetListOfFiles();
161 if (!strcmp(fname.
Data(),
"."))
163 else if (!strcmp(fname.
Data(),
".."))
169 sdirpath += fname.
Data();
209 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 * GetTitle() const
Returns title of object.
virtual const char * WorkingDirectory()
Return working directory.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
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 void SetName(const char *name)
Change (i.e.
Bool_t GetRefreshFlag() const
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
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.
const char * Data() const
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.
Describes an Operating System directory for the browser.
Using a TBrowser one can browse all ROOT objects.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
R__EXTERN TSystem * gSystem
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void SetRefreshFlag(Bool_t flag)
Bool_t TestBit(UInt_t f) const
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
virtual ~TRemoteObject()
Delete remote object.
virtual Bool_t IsDirectory(const char *dir=0) const
Check if object is a directory.
Mother of all ROOT objects.
A TSystemFile describes an operating system file.
virtual void Add(TObject *obj)
TList * Browse()
Browse OS system directories.
Bool_t GetFileStat(FileStat_t *sbuf)
Get remote file status.
TRemoteObject()
Create a remote object.