library: libCore #include "TSystemDirectory.h"

# TSystemDirectory

class description - source file - inheritance tree (.pdf)

## class TSystemDirectory : public TSystemFile

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TSystemFile`

<-

`TSystemDirectory`

        protected:

          TSystemDirectory* FindDirObj(const char* name)
               TSystemFile* FindFileObj(const char* name, const char* dir)
                     Bool_t IsItDirectory(const char* name) const

        public:

                            TSystemDirectory()
                            TSystemDirectory(const char* dirname, const char* path)
                            TSystemDirectory(const TSystemDirectory&)
                    virtual ~TSystemDirectory()
               virtual void Browse(TBrowser* b)
             static TClass* Class()
               virtual void Copy(const char*)
               virtual void Copy(TObject&) const
               virtual void Delete()
               virtual void Delete(Option_t*)
               virtual void DrawClass() const
           virtual TObject* DrawClone(Option_t*) const
               virtual void Edit()
             virtual TList* GetListOfFiles() const
            virtual TClass* IsA() const
             virtual Bool_t IsDirectory(const char* = "0") const
             virtual Bool_t IsFolder() const
               virtual void Move(const char*)
          TSystemDirectory& operator=(const TSystemDirectory&)
               virtual void SetDirectory(const char* name)
               virtual void SetDrawOption(Option_t*)
               virtual void SetName(const char*)
               virtual void SetTitle(const char*)
               virtual void ShowMembers(TMemberInspector& insp, char* parent)
               virtual void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          TOrdCollection* fDirsInBrowser
          TOrdCollection* fFilesInBrowser

## Class Description

     TSystemDirectory

     Describes an Operating System directory for the browser.

     Author: Christian Bormann  30/09/97
             http://www.ikf.physik.uni-frankfurt.de/~bormann/

TSystemDirectory()

     Create a system directory object.

TSystemDirectory(const char *dirname, const char *path) : TSystemFile(dirname, path)

     Create a system directory object.

~TSystemDirectory()

     Delete system directory object.

TList* GetListOfFiles() const

     Returns a TList of TSystemFile objects representing the contents
     of the directory. It's the responsibility of the user to delete
     the list (the list owns the contained objects).
     Returns 0 in case of errors.

void SetDirectory(const char *name)

     Create a system directory object.

Bool_t IsItDirectory(const char *name) const

     Check if name is a directory.

void Browse(TBrowser *b)

     Browse OS system directories.

TSystemDirectory* FindDirObj(const char *name)

     Method that returns system directory object if it
     exists in list, 0 otherwise.

TSystemFile* FindFileObj(const char *name, const char *dir)

     Method that returns system file object if it exists in
     list, 0 otherwise.

### Inline Functions

                       Bool_t IsFolder() const
                       Bool_t IsDirectory(const char* = "0") const
                         void Edit()
                         void Delete()
                         void Copy(const char*)
                         void Move(const char*)
                         void DrawClass() const
                     TObject* DrawClone(Option_t*) const
                         void SetDrawOption(Option_t*)
                         void SetName(const char*)
                         void SetTitle(const char*)
                         void Delete(Option_t*)
                         void Copy(TObject&) const
                      TClass* Class()
                      TClass* IsA() const
                         void ShowMembers(TMemberInspector& insp, char* parent)
                         void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
             TSystemDirectory TSystemDirectory(const TSystemDirectory&)
            TSystemDirectory& operator=(const TSystemDirectory&)

Author: Christian Bormann 13/10/97
Last update: root/base:$Name: $:$Id: TSystemDirectory.cxx,v 1.7 2005/06/02 16:28:27 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *