Changeset 4215 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/27/04 14:29:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r4193 r4215 258 258 // -------------------------------------------------------------------------- 259 259 // 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 // 268 void MDirIter::Reset() 269 { 270 Close(); 271 fNext.Reset(); 272 } 273 274 // -------------------------------------------------------------------------- 275 // 260 276 // Return the Next file in the directory which is valid (see Check()) 261 277 // nocheck==1 returns the next entry unchecked -
trunk/MagicSoft/Mars/mbase/MDirIter.h
r4188 r4215 49 49 50 50 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(); 56 52 void ResetIter() {fNext.Reset();} 57 53
Note:
See TracChangeset
for help on using the changeset viewer.