Logo ROOT   6.08/07
Reference Guide
TProofBenchDataSet.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Sangsu Ryu 22/06/2010
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProofBenchDataSet
13 #define ROOT_TProofBenchDataSet
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofBenchDataSet //
18 // //
19 // Handle operations on datasets used by ProofBench //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TObject
24 #include "TObject.h"
25 #endif
26 
27 class TProof;
28 
29 class TProofBenchDataSet: public TObject {
30 
31 private:
32 
33 protected:
34  TProof* fProof; //proof
35 
36  Int_t Handle(const char *dset, TObject *type);
37 
38 public:
39 
40  TProofBenchDataSet(TProof *proof = 0);
41  virtual ~TProofBenchDataSet() { }
42 
43  Bool_t IsProof(TProof *p) { return (p == fProof) ? kTRUE : kFALSE; }
44 
45  Int_t CopyFiles(const char *dset, const char *destdir);
46  Int_t ReleaseCache(const char *dset);
47  Int_t RemoveFiles(const char *dset);
48 
49  ClassDef(TProofBenchDataSet,0) //Handle operations on datasets
50 };
51 
52 #endif
Int_t CopyFiles(const char *dset, const char *destdir)
Copy the files of dataset 'dset' to another directory Return 0 on success, -1 on error.
Bool_t IsProof(TProof *p)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Handle operations on datasets used by ProofBench.
const Bool_t kFALSE
Definition: Rtypes.h:92
Int_t RemoveFiles(const char *dset)
Physically remove the dataset 'dset', i.e.
#define ClassDef(name, id)
Definition: Rtypes.h:254
TProofBenchDataSet(TProof *proof=0)
Constructor.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
Int_t Handle(const char *dset, TObject *type)
Physically remove the dataset 'dset', i.e.
int type
Definition: TGX11.cxx:120
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:346
Mother of all ROOT objects.
Definition: TObject.h:37
const Bool_t kTRUE
Definition: Rtypes.h:91