Changeset 14853 for trunk/Mars/mbase


Ignore:
Timestamp:
02/04/13 09:59:33 (12 years ago)
Author:
tbretz
Message:
Added the path argument to the ReadList function
Location:
trunk/Mars/mbase
Files:
2 edited

Legend:

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

    r13078 r14853  
    176176}
    177177
    178 Int_t MDirIter::ReadList(const char *name)
    179 {
    180     TString fname(name);
     178Int_t MDirIter::ReadList(const char *name, const TString &path)
     179{
     180    const char *con = gSystem->ConcatFileName(path.Data(), name);
     181    TString fname(path.IsNull() ? name : con);
     182    delete [] con;
     183
    181184    gSystem->ExpandPathName(fname);
    182185
  • trunk/Mars/mbase/MDirIter.h

    r13078 r14853  
    4848    }
    4949
    50     Int_t ReadList(const char *fname);
     50    Int_t ReadList(const char *fname, const TString &path="");
    5151    void Sort();
    5252
Note: See TracChangeset for help on using the changeset viewer.