- Timestamp:
- 10/05/19 16:54:54 (5 years ago)
- Location:
- trunk/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MDirIter.cc
r19626 r19720 139 139 140 140 // Create an iterator to iterate over all entries in the directory 141 MDirIter NextD(dir); 141 MDirIter NextD; 142 NextD.AddDirectory(dir); 142 143 143 144 TString c; … … 159 160 // Add a single file to the iterator 160 161 // 161 Int_t MDirIter::AddFile(const char *name )162 Int_t MDirIter::AddFile(const char *name, Int_t rec) 162 163 { 163 164 return AddDirectory(gSystem->DirName(name), gSystem->BaseName(name)); -
trunk/Mars/mbase/MDirIter.h
r14853 r19720 38 38 AddDirectory(o->GetName(), o->GetTitle()); 39 39 } 40 MDirIter(const char *dir, const char *filter ="", Int_t rec=0) : fNext(&fList), fDirPtr(NULL)40 MDirIter(const char *dir, const char *filter, Int_t rec=0) : fNext(&fList), fDirPtr(NULL) 41 41 { 42 42 fList.SetOwner(); 43 43 AddDirectory(dir, filter, rec); 44 } 45 MDirIter(const char *dir, Int_t rec=0) : fNext(&fList), fDirPtr(NULL) 46 { 47 fList.SetOwner(); 48 AddFile(dir, rec); 44 49 } 45 50 ~MDirIter() … … 52 57 53 58 Int_t AddDirectory(const char *dir, const char *filter="", Int_t recursive=0); 54 Int_t AddFile(const char *name );59 Int_t AddFile(const char *name, Int_t rec=0); 55 60 void Add(const MDirIter &iter); 56 61 void Reset();
Note:
See TracChangeset
for help on using the changeset viewer.