KaliVeda
Toolkit for HIC analysis
KVDMSDataRepository.h
1 
4 #ifndef __KVDMSDATAREPOSITORY_H
5 #define __KVDMSDATAREPOSITORY_H
6 
7 #include "KVDataRepository.h"
8 class KVDMS;
9 
18 protected:
20 
21  virtual int Chmod(const char* file, UInt_t mode);
22 public:
24  virtual ~KVDMSDataRepository();
25 
27  const Char_t* datatype = "", const Char_t* subdir = "");
28  virtual Bool_t CheckSubdirExists(const Char_t* dir,
29  const Char_t* subdir = 0);
30  virtual void CopyFileFromRepository(const KVDataSet*,
31  const Char_t* datatype,
32  const Char_t* filename,
33  const Char_t* destination);
34  virtual int CopyFileToRepository(const Char_t* source,
35  const KVDataSet*,
36  const Char_t* datatype,
37  const Char_t* filename);
38  virtual Bool_t CheckFileStatus(const KVDataSet*,
39  const Char_t* datatype,
40  const Char_t* runfile);
41  virtual void MakeSubdirectory(const KVDataSet*,
42  const Char_t* datatype = "");
43  virtual void DeleteFile(const KVDataSet*,
44  const Char_t* datatype,
45  const Char_t* filename, Bool_t confirm =
46  kTRUE);
47  virtual Bool_t GetFileInfo(const KVDataSet*,
48  const Char_t* datatype,
49  const Char_t* runfile, FileStat_t& fs);
50 
51  virtual const Char_t* GetFullPathToOpenFile(const KVDataSet* dataset,
52  const Char_t* datatype,
53  const Char_t* runfile);
54 
55  TObject* OpenDataSetRunFile(const KVDataSet* ds, const Char_t* type, Int_t run, Option_t* opt = "");
56 
57  ClassDef(KVDMSDataRepository, 1) //Remote data repository using Data Management Systems
58 };
59 
60 #endif
int Int_t
unsigned int UInt_t
bool Bool_t
char Char_t
const char Option_t
#define ClassDef(name, id)
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="")
KVDMSDataRepository()
Default constructor.
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="")
Abstract base class for interfaces to Data Management Systems (SRB, IRODS, etc.)
Definition: KVDMS.h:60
Base class for managing repositories of experimental data.
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:35
Optimised list in which named objects can only be placed once.