library: libTable #include "TFileSet.h"

# TFileSet

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

## class TFileSet : public TDataSet

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TDataSet`

<-

`TFileSet`

        public:

                          TFileSet()
                          TFileSet(const TString& dirname, const Char_t* filename = "0", Bool_t expand = kTRUE, Int_t maxDepth = 10)
                          TFileSet(const TFileSet&)
                  virtual ~TFileSet()
           static TClass* Class()
           virtual Long_t HasData() const
          virtual TClass* IsA() const
           virtual Bool_t IsEmpty() const
           virtual Bool_t IsFolder() const
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

## Class Description

     TFileSet

     TFileSet class is a class to convert the
          "native file system structure"
     into an instance of the TDataSet class

      Example:
        How to convert your home directory into the OO dataset

      root [0] TString home = "$HOME";
      root [1] TFileSet set(home);
      root [2] TBrowser b("MyHome",&set);
      root [3] set.ls("*");

TFileSet() : TDataSet()

TFileSet(const TString &dirname,const Char_t *setname,Bool_t expand, Int_t maxDepth) : TDataSet()

     Creates TFileSet
     Convert the "opearting system" file system tree into the memory resided TFileSet

      Parameters:
      -----------
      dirname  - the name of the "native file system" directory
                 to convert into TFileSet
      setname  - the name of this TFileSet (it is the "base name"
                                     of the "dirname" by default)
      expand   - flag whether the "dirname" must be "expanded
                 (kTRUE by default)
      maxDeep  - the max number of the levels of the directory to read in
                 (=10 by default)
      Note: If the "dirname" points to non-existent object, for examoe it is dead-link
      ----  the object is marked as "Zombie" and this flag is propagated upwards

~TFileSet()

Bool_t IsEmpty() const

Long_t HasData() const

     This implementation is done in the TDataSet::Purge() method in mind
     Since this method returns non-zero for files the last are NOT "purged"
     by TDataSet::Purge()

Bool_t IsFolder() const

     If the title of this TFileSet is "file" it is NOT folder
     see: TFileSet(TString &dirname,const Char_t *setname,Bool_t expand)

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
               TFileSet TFileSet(const TFileSet&)

Author: Valery Fine(fine@mail.cern.ch) 03/07/98
Last update: root/star:$Name: $:$Id: TFileSet.cxx,v 1.3 2003/12/30 13:16:51 brun Exp $