KaliVeda
Toolkit for HIC analysis
KVRemoteDataRepository.h
1 /*
2 $Id: KVRemoteDataRepository.h,v 1.4 2007/05/31 09:59:22 franklan Exp $
3 $Revision: 1.4 $
4 $Date: 2007/05/31 09:59:22 $
5 */
6 
9 
10 #ifndef __KVREMOTEDATAREPOSITORY_H
11 #define __KVREMOTEDATAREPOSITORY_H
12 
13 #include <KVDataRepository.h>
14 
15 class KVUniqueNameList;
16 
69 protected:
71 
72 public:
73 
76 
77  virtual Bool_t IsRemote() const
78  {
79  return kTRUE;
80  };
81  virtual Bool_t IsConnected();
82  virtual Bool_t CheckSubdirExists(const Char_t* dir,
83  const Char_t* subdir = 0);
84  virtual Bool_t GetFileInfo(const KVDataSet* ds,
85  const Char_t* datatype,
86  const Char_t* runfile, FileStat_t& fs);
87  virtual Bool_t CheckFileStatus(const KVDataSet* ds,
88  const Char_t* datatype,
89  const Char_t* runfile);
90 
91  virtual void CopyFileFromRepository(const KVDataSet* ds,
92  const Char_t* datatype,
93  const Char_t* filename,
94  const Char_t* destination);
95  virtual int CopyFileToRepository(const Char_t* source,
96  const KVDataSet* ds,
97  const Char_t* datatype,
98  const Char_t* filename);
99  virtual void MakeSubdirectory(const KVDataSet* ds,
100  const Char_t* datatype = "");
102  const Char_t* datatype = "", const Char_t* subdir = "");
103  virtual void DeleteFile(const KVDataSet* ds,
104  const Char_t* datatype,
105  const Char_t* filename, Bool_t confirm =
106  kTRUE);
107  virtual const Char_t* GetFullPathToTransferFile(const KVDataSet* dataset,
108  const Char_t* datatype,
109  const Char_t* runfile);
110  virtual const Char_t* GetFullPathToOpenFile(const KVDataSet* dataset,
111  const Char_t* datatype,
112  const Char_t* runfile);
113 
114  ClassDef(KVRemoteDataRepository, 0) //Class handling data repositories on distant machines
115 };
116 
117 #endif
bool Bool_t
char Char_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
Base class for managing repositories of experimental data.
Manage all datasets contained in a given data repository.
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:35
Manage a collection of data files on a remote machine.
virtual void CopyFileFromRepository(const KVDataSet *ds, const Char_t *datatype, const Char_t *filename, const Char_t *destination)
virtual const Char_t * GetFullPathToOpenFile(const KVDataSet *dataset, const Char_t *datatype, const Char_t *runfile)
virtual Bool_t CheckSubdirExists(const Char_t *dir, const Char_t *subdir=0)
virtual Bool_t IsRemote() const
virtual ~ KVRemoteDataRepository()
virtual void MakeSubdirectory(const KVDataSet *ds, const Char_t *datatype="")
virtual KVDataSetManager * NewDataSetManager()
Create and return pointer to new data set manager.
KVRemoteDataRepository()
Default constructor.
virtual const Char_t * GetFullPathToTransferFile(const KVDataSet *dataset, const Char_t *datatype, const Char_t *runfile)
virtual KVUniqueNameList * GetDirectoryListing(const KVDataSet *ds, const Char_t *datatype="", const Char_t *subdir="")
virtual int CopyFileToRepository(const Char_t *source, const KVDataSet *ds, const Char_t *datatype, const Char_t *filename)
virtual void DeleteFile(const KVDataSet *ds, const Char_t *datatype, const Char_t *filename, Bool_t confirm=kTRUE)
virtual Bool_t GetFileInfo(const KVDataSet *ds, const Char_t *datatype, const Char_t *runfile, FileStat_t &fs)
virtual Bool_t CheckFileStatus(const KVDataSet *ds, const Char_t *datatype, const Char_t *runfile)
Optimised list in which named objects can only be placed once.