4 #include "KVDMSDataRepository.h"
62 if (strcmp(datatype,
"")) {
65 if (strcmp(subdir,
"")) {
71 return fDMS->GetFullListing(path.
Data());
93 path = fAccessroot.
Data();
102 return fDMS->DirectoryContains(dirname.
Data(), path.
Data());
115 const Char_t* destination)
120 if (CheckFileStatus(ds, datatype,
filename)) {
127 fDMS->get(path.
Data(), destination);
153 return fDMS->put(source, path.
Data());
182 return fDMS->DirectoryContains(runfile, path.
Data());
199 fDMS->mkdir(path.
Data());
226 cout <<
"Deleting file from repository: " <<
filename << endl;
229 "Are you sure you want to delete this file permanently ? (y/n)"
235 cout <<
"File not deleted" << endl;
239 fDMS->forcedelete(path.
Data());
297 if (fDMS->GetPathInfo(path.
Data(), DMSfile)) {
328 static TString tmpdir_filepath;
330 return tmpdir_filepath.
Data();
366 Error(
"OpenDataSetRunFile",
"No file found for run %d of data-type %s", run,
type);
376 CopyFileFromRepository(ds,
type,
filename, tmpdir_filepath);
379 return OpenDataSetFile(ds,
type, tmpdir_filepath, opt);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
void AssignAndDelete(TString &target, char *tobedeleted)
R__EXTERN TSystem * gSystem
KVDatime GetModTime() const
Manage remote data repository using a Data Management System.
virtual ~KVDMSDataRepository()
Destructor.
virtual Bool_t GetFileInfo(const KVDataSet *, const Char_t *datatype, const Char_t *runfile, FileStat_t &fs)
virtual Bool_t CheckSubdirExists(const Char_t *dir, const Char_t *subdir=0)
virtual int Chmod(const char *file, UInt_t mode)
Overrides KVDataRepository method.
virtual void DeleteFile(const KVDataSet *, const Char_t *datatype, const Char_t *filename, Bool_t confirm=kTRUE)
virtual int CopyFileToRepository(const Char_t *source, const KVDataSet *, const Char_t *datatype, const Char_t *filename)
virtual KVUniqueNameList * GetDirectoryListing(const KVDataSet *, const Char_t *datatype="", const Char_t *subdir="")
virtual const Char_t * GetFullPathToOpenFile(const KVDataSet *dataset, const Char_t *datatype, const Char_t *runfile)
virtual void CopyFileFromRepository(const KVDataSet *, const Char_t *datatype, const Char_t *filename, const Char_t *destination)
virtual Bool_t CheckFileStatus(const KVDataSet *, const Char_t *datatype, const Char_t *runfile)
virtual void MakeSubdirectory(const KVDataSet *, const Char_t *datatype="")
Overrides KVDataRepository method.
TObject * OpenDataSetRunFile(const KVDataSet *ds, const Char_t *type, Int_t run, Option_t *opt="")
virtual TObject * OpenDataSetRunFile(const KVDataSet *ds, const Char_t *type, Int_t run, Option_t *opt="")
virtual const Char_t * GetFullPathToOpenFile(const KVDataSet *dataset, const Char_t *datatype, const Char_t *runfile)
Manage an experimental dataset corresponding to a given experiment or campaign.
const Char_t * GetRunfileName(const Char_t *type, Int_t run) const
virtual const Char_t * GetDataPathSubdir() const
Returns name of top-level directory in data repository used to store data files for this dataset.
const Char_t * GetDataTypeSubdir(const Char_t *type) const
Optimised list in which named objects can only be placed once.
UInt_t Convert(Bool_t toGMT=kFALSE) const
const char * GetName() const override
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual const char * DirName(const char *pathname)
virtual char * ConcatFileName(const char *dir, const char *name)
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
virtual const char * BaseName(const char *pathname)
virtual const char * TempDirectory() const