KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVDataTransfer.h
Go to the documentation of this file.
1 /*
2 $Id: KVDataTransfer.h,v 1.5 2007/01/04 16:38:50 franklan Exp $
3 $Revision: 1.5 $
4 $Date: 2007/01/04 16:38:50 $
5 */
6 
9 
10 #ifndef __KVDATATRANSFER_H
11 #define __KVDATATRANSFER_H
12 
13 #include "KVDataSetAnalyser.h"
14 #include "TString.h"
15 
16 class KVDataRepository;
17 
76 protected:
81 
82  virtual void SetTransferExec(const Char_t* path)
83  {
84  fTransferExec = path;
85  }
86  virtual void ChooseAnalysisTask()
87  {
88  }
89  virtual void SubmitTask()
90  {
91  }
92 
93  virtual void ExecuteCommand() = 0;
94  virtual void WriteTransferScript() = 0;
95 
96  virtual void CheckTargetRepository();
97 
98  virtual void init();
100  virtual void set_dataset_pointer(KVDataSet* ds);
101  virtual void set_dataset_name(const Char_t* name);
102 
103 public:
104 
105  KVDataTransfer();
106  virtual ~ KVDataTransfer();
107  virtual void Run();
108  virtual void TransferRuns();
109 
110  static KVDataTransfer* NewTransfer(const Char_t* source_rep,
111  const Char_t* target_rep);
112 
113  ClassDef(KVDataTransfer, 0) //Transfers data between data repositories
114 };
115 
116 #endif
char Char_t
bool Bool_t
#define ClassDef(name, id)
Base class for managing repositories of experimental data.
Pilots user analysis of experimental data.
Manage an experimental dataset corresponding to a given experiment or campaign.
Definition: KVDataSet.h:207
Base class for transferring data between data repositories.
virtual void Run()
virtual void init()
Initialisation of data transfer.
virtual void set_dataset_name(const Char_t *name)
virtual void CheckTargetRepository()
virtual void set_dataset_pointer(KVDataSet *ds)
virtual void TransferRuns()
virtual void ExecuteCommand()=0
virtual void ChooseAnalysisTask()
Bool_t fOK
may be set to kFALSE by init(), in which case Run() will abort
KVDataRepository * fTargetRep
repository where files will be copied
virtual ~ KVDataTransfer()
virtual void SetTransferExec(const Char_t *path)
virtual void SubmitTask()
static KVDataTransfer * NewTransfer(const Char_t *source_rep, const Char_t *target_rep)
TString fTransferExec
full path to transfer client executable
virtual void WriteTransferScript()=0
TString fCmdFile
name of command file given to transfer agent
KVDataRepository * fSourceRep
repository containing source files