Ignore:
Timestamp:
05/27/04 14:29:50 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MDirIter.cc

    r4193 r4215  
    258258// --------------------------------------------------------------------------
    259259//
     260// Reset the iteration and strat from scratch. To do this correctly we have
     261// to reset the list of directories to iterate _and_ to close the current
     262// directory. When you call Next() the next time the first directory will
     263// be reopened again and you'll get the first entry.
     264//
     265// Do not try to only close the current directory or to reset the directory
     266// list only. This might not give the expected result!
     267//
     268void  MDirIter::Reset()
     269{
     270    Close();
     271    fNext.Reset();
     272}
     273
     274// --------------------------------------------------------------------------
     275//
    260276// Return the Next file in the directory which is valid (see Check())
    261277// nocheck==1 returns the next entry unchecked
  • trunk/MagicSoft/Mars/mbase/MDirIter.h

    r4188 r4215  
    4949
    5050    Int_t AddDirectory(const char *dir, const char *filter="", Int_t recursive=0);
    51     void  Reset()
    52     {
    53         Close();
    54         fNext.Reset();
    55     }
     51    void  Reset();
    5652    void ResetIter() {fNext.Reset();}
    5753
Note: See TracChangeset for help on using the changeset viewer.