KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Handles a set of different versions of files with the same base name and a timestamp.
Read all versions of file with a given basename in directory and put them in a list sorted according to their timestamps. Environment variables (like $KVROOT
) and other special symbols ('~
') can be used in the directory name.
Definition at line 54 of file KVDatedFileManager.h.
Public Member Functions | |
KVDatedFileManager () | |
KVDatedFileManager (const Char_t *base, const Char_t *dir) | |
virtual | ~KVDatedFileManager () |
const Char_t * | GetOldestVersion () |
Returns name of file with earliest timestamp. More... | |
const Char_t * | GetPreviousVersion (const Char_t *name) |
void | Update () |
Updates list of files. More... | |
Private Member Functions | |
void | ReadFiles () |
Private Attributes | |
KVString | fBaseName |
the base name of the file More... | |
KVString | fDirectory |
the directory containg the files More... | |
KVList | fFileList |
list of files sorted by timestamp More... | |
#include <KVDatedFileManager.h>
|
inline |
Definition at line 63 of file KVDatedFileManager.h.
Read all versions of file with basename 'base' in directory 'dir' and put them in a list sorted according to their timestamps Environment variables ($KVROOT) and other special symbols ('~') can be used in the directory name.
Definition at line 25 of file KVDatedFileManager.cpp.
|
inlinevirtual |
Definition at line 65 of file KVDatedFileManager.h.
const Char_t * KVDatedFileManager::GetOldestVersion | ( | ) |
Returns name of file with earliest timestamp.
Definition at line 100 of file KVDatedFileManager.cpp.
Returns name of file with timestamp immediately prior to the given name. Example: to know the name of the most recent backup version, give the base name of the file
If no older version exists, returns empty string
Definition at line 72 of file KVDatedFileManager.cpp.
|
private |
Read all versions of file with given basename in directory and put them in a list sorted according to their timestamps
Definition at line 41 of file KVDatedFileManager.cpp.
void KVDatedFileManager::Update | ( | ) |
Updates list of files.
Definition at line 112 of file KVDatedFileManager.cpp.
|
private |
the base name of the file
Definition at line 55 of file KVDatedFileManager.h.
|
private |
the directory containg the files
Definition at line 56 of file KVDatedFileManager.h.
|
private |
list of files sorted by timestamp
Definition at line 57 of file KVDatedFileManager.h.