Changeset 2298 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 08/01/03 14:44:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MRead.cc
r2296 r2298 52 52 } 53 53 54 Int_t MRead::AddFiles(MDirIter &files) 55 { 56 files.Reset(); 57 58 Int_t rc = 0; 59 60 TString str; 61 while (!(str=files.Next()).IsNull()) 62 { 63 const Int_t num = AddFile(str); 64 if (num<0) 65 *fLog << warn << "Warning: AddFile(\"" << str << "\") returned " << num << "... skipped." << endl; 66 else 67 rc += num; 68 } 69 70 return rc; 71 } 72 54 73 // -------------------------------------------------------------------------- 55 74 // … … 100 119 return i!=0; 101 120 } 102 103 Int_t MRead::AddFiles(MDirIter &next)104 {105 Int_t rc=0;106 TString n;107 while (!(n=next()).IsNull())108 {109 const Int_t num = AddFile(n);110 if (num>0)111 rc += num;112 }113 return rc;114 }115 -
trunk/MagicSoft/Mars/mfileio/MRead.h
r2296 r2298 24 24 25 25 virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return -1; } 26 Int_t AddFiles(MDirIter & next);26 Int_t AddFiles(MDirIter &dir); 27 27 28 28 Bool_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
Note:
See TracChangeset
for help on using the changeset viewer.