54 while ((
file = next())) {
143 :
TNamed(filename, basename)
154 f.Remove(0,
b.Length() + 1);
155 f.ReplaceAll(
"_",
" ");
156 fTimestamp.SetSQLDate(
f.Data());
Defines macros for standard error messages.
#define KV__ERROR(method)
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TSystem * gSystem
Handles a set of different versions of files with the same base name and a timestamp.
KVString fDirectory
the directory containg the files
const Char_t * GetPreviousVersion(const Char_t *name)
void Update()
Updates list of files.
KVString fBaseName
the base name of the file
const Char_t * GetOldestVersion()
Returns name of file with earliest timestamp.
KVList fFileList
list of files sorted by timestamp
void Sort(Bool_t order=kSortAscending)
virtual TObject * Last() const
virtual void Clear(Option_t *option="")
virtual TObject * At(Int_t idx) const
virtual void Add(TObject *obj)
virtual TObject * FindObject(const char *name) const
A filename with an SQL-format date extension which can be used to sort a list according to date.
virtual Bool_t IsEqual(const TObject *obj) const
Two files are the same if they have the same basename and timestamp.
KVDatime fTimestamp
timestamp extracted from filename
virtual Int_t Compare(const TObject *obj) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual Int_t GetEntries() const
virtual const char * GetName() const
virtual const char * GetName() const
virtual Int_t IndexOf(const TObject *obj) const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
const char * Data() const
virtual TList * GetListOfFiles() const
virtual char * ExpandPathName(const char *path)