library: libCore #include "TSystemDirectory.h"

# TSystemDirectory

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

## 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 IsDirectory(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 Edit()
             virtual TList* GetListOfFiles() const
            virtual TClass* IsA() const
             virtual Bool_t IsDirectory() const
             virtual Bool_t IsFolder() const
          TSystemDirectory& operator=(const TSystemDirectory&)
               virtual void SetDirectory(const char* name)
               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 IsDirectory(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
                         void Edit()
                      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.5 2003/12/30 13:16:50 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *