4#include "KVDMSDataRepository.h"
62 if (strcmp(datatype,
"")) {
65 if (strcmp(subdir,
"")) {
115 const Char_t* destination)
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;
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);
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.
KVDMS * fDMS
connection to Data Management System
TObject * OpenDataSetRunFile(const KVDataSet *ds, const Char_t *type, Int_t run, Option_t *opt="")
virtual Int_t forcedelete(const Char_t *path)=0
virtual Bool_t GetPathInfo(const Char_t *path, DMSFile_t &fs)
virtual Int_t chmod(const Char_t *path, UInt_t mode)=0
virtual Int_t get(const Char_t *source, const Char_t *target=".")=0
virtual Bool_t DirectoryContains(const Char_t *name, const Char_t *directory="")
virtual Int_t mkdir(const Char_t *path, Option_t *opt="")=0
virtual Int_t put(const Char_t *source, const Char_t *target=".")=0
virtual KVUniqueNameList * GetFullListing(const Char_t *directory="")
virtual TObject * OpenDataSetRunFile(const KVDataSet *ds, const Char_t *type, Int_t run, Option_t *opt="")
virtual const Char_t * GetReadProtocol(const Char_t *dataset, const Char_t *datatype)
virtual const Char_t * GetFullPathToOpenFile(const KVDataSet *dataset, const Char_t *datatype, const Char_t *runfile)
TObject * OpenDataSetFile(const KVDataSet *ds, const Char_t *type, const TString &fname, Option_t *opt="")
Manage an experimental dataset corresponding to a given experiment or campaign.
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 * GetRunfileName(const Char_t *type, Int_t run) const
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
virtual void Error(const char *method, const char *msgfmt,...) const
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