Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Christian Bormann 13/10/97
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_TSystemDirectory
12#define ROOT_TSystemDirectory
16// //
17// TSystemDirectory //
18// //
19// Describes an Operating System directory for the browser. //
20// //
21// Author: Christian Bormann 30/09/97 //
22// http://www.ikf.physik.uni-frankfurt.de/~bormann/ //
23// //
26#include "TSystemFile.h"
28class TOrdCollection;
29class TList;
38 Bool_t IsItDirectory(const char *name) const;
39 TSystemDirectory *FindDirObj(const char *name);
40 TSystemFile *FindFileObj(const char *name, const char *dir);
47 TSystemDirectory(const char *dirname, const char *path);
49 virtual ~TSystemDirectory();
51 Bool_t IsFolder() const override { return kTRUE; }
52 Bool_t IsDirectory(const char * = nullptr) const override { return kTRUE; }
54 void Browse(TBrowser *b) override;
55 void Edit() override {}
56 virtual TList *GetListOfFiles() const;
57 virtual void SetDirectory(const char *name);
58 void Delete() override {}
59 void Copy(const char *) override {}
60 void Move(const char *) override {}
62 // dummy methods from TObject
63 void DrawClass() const override { }
64 TObject *DrawClone(Option_t *) const override { return nullptr; }
65 void SetDrawOption(Option_t *) override { }
66 void SetName(const char *name) override { TSystemFile::SetName(name); }
67 void SetTitle(const char *title) override { TSystemFile::SetTitle(title); }
68 void Delete(Option_t *) override { }
69 void Copy(TObject & ) const override { }
71 ClassDefOverride(TSystemDirectory,0) //A system directory
bool Bool_t
Definition: RtypesCore.h:63
const Bool_t kTRUE
Definition: RtypesCore.h:100
const char Option_t
Definition: RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
char name[80]
Definition: TGX11.cxx:110
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
A doubly linked list.
Definition: TList.h:38
Mother of all ROOT objects.
Definition: TObject.h:41
Ordered collection.
Describes an Operating System directory for the browser.
virtual TList * GetListOfFiles() const
Returns a TList of TSystemFile objects representing the contents of the directory.
void SetDrawOption(Option_t *) override
Set drawing option for object.
virtual void SetDirectory(const char *name)
Create a system directory object.
void Delete() override
delete this file
TObject * DrawClone(Option_t *) const override
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
virtual ~TSystemDirectory()
Delete system directory object.
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Bool_t IsDirectory(const char *=nullptr) const override
Check if object is a directory.
void Copy(const char *) override
copy this file
void Move(const char *) override
move this file
TSystemFile * FindFileObj(const char *name, const char *dir)
Method that returns system file object if it exists in list, 0 otherwise.
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 & operator=(const TSystemDirectory &)=delete
void Edit() override
Invoke text editor on this file.
TSystemDirectory * FindDirObj(const char *name)
Method that returns system directory object if it exists in list, 0 otherwise.
void Copy(TObject &) const override
Copy this to obj.
void DrawClass() const override
Draw class inheritance tree of the class to which this object belongs.
void Browse(TBrowser *b) override
Browse OS system directories.
void SetTitle(const char *title) override
Set the title of the TNamed.
void Delete(Option_t *) override
Delete this object.
TOrdCollection * fDirsInBrowser
A TSystemFile describes an operating system file.
Definition: TSystemFile.h:29
void SetTitle(const char *title) override
Set the title of the TNamed.
Definition: TSystemFile.h:57
void SetName(const char *name) override
Set the name of the TNamed.
Definition: TSystemFile.h:56