Logo ROOT   6.08/07
Reference Guide
TGridCollection.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: Andreas-Joachim Peters 2005-05-09
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TGridCollection
13 #define ROOT_TGridCollection
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGridCollection //
18 // //
19 // Class which manages collection files on the Grid. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TObject
24 #include "TObject.h"
25 #endif
26 
27 class TMap;
28 class TFile;
29 class TEntryList;
30 class TList;
31 class TDSet;
32 class TGridResult;
33 class TFileCollection;
34 
35 
36 class TGridCollection : public TObject {
37 public:
39  virtual ~TGridCollection() { }
40 
41  virtual void Reset()
42  { MayNotUse("Reset"); }
43  virtual TMap *Next()
44  { MayNotUse("Next"); return 0;}
45  virtual Bool_t Remove(TMap *)
46  { MayNotUse("Remove"); return 0;}
47  virtual const char *GetTURL(const char * /*name*/ = "")
48  { MayNotUse("GetTURL"); return 0;}
49  virtual const char *GetSURL(const char * /*name*/ = "")
50  { MayNotUse("GetSURL"); return 0;}
51  virtual const char *GetLFN(const char * /*name*/ = "")
52  { MayNotUse("GetLFN"); return 0;}
53  virtual Long64_t GetSize(const char * /*name*/ = "")
54  { MayNotUse("GetSize"); return -1;}
55  virtual Bool_t IsOnline(const char * /*name*/ = "")
56  { MayNotUse("IsOnline"); return 0;}
57  virtual Bool_t IsSelected(const char * /*name*/ = "")
58  { MayNotUse("IsSelected"); return 0;}
59  virtual void Status()
60  { MayNotUse("Status"); }
61  virtual void SetTag(const char * , const char * , TMap* )
62  { MayNotUse("SetTag"); }
63  virtual Bool_t SelectFile(const char *, Int_t /*nstart*/ = -1 , Int_t /*nstop*/ = -1)
64  { MayNotUse("SelectFile"); return kFALSE;}
65  virtual Bool_t DeselectFile(const char *, Int_t /*nstart*/ = -1, Int_t /*nstop*/ = -1)
66  { MayNotUse("DeselectFile"); return kFALSE;}
68  { MayNotUse("InvertSelection"); return kFALSE;}
69  virtual Bool_t DownscaleSelection(UInt_t /* scaler */ = 2)
70  { MayNotUse("DownscaleSelection"); return kFALSE;}
71  virtual Bool_t ExportXML(const char *, Bool_t /*selected*/ = kTRUE, Bool_t /*online*/ = kTRUE,
72  const char * /*name*/ = "ROOT xml", const char * /*comment*/ = "Exported XML")
73  { MayNotUse("ExportXML"); return kFALSE;}
74  virtual const char* GetExportUrl()
75  { MayNotUse("GetExportUrl"); return 0;}
76  virtual Bool_t SetExportUrl(const char * /*exporturl*/ = 0)
77  { MayNotUse("SetExportUrl"); return kFALSE;}
78  virtual void Print(Option_t *) const
79  { MayNotUse("Print"); }
80  virtual TFile *OpenFile(const char *)
81  { MayNotUse("OpenFile"); return 0;}
82  virtual TList *GetFileGroupList() const
83  { MayNotUse("GetFileGroupList"); return 0;}
84  virtual TEntryList *GetEntryList(const char *)
85  { MayNotUse("GetEntryList"); return 0;}
86  virtual UInt_t GetNofGroups() const
87  { MayNotUse("GetNofGroups"); return 0;}
88  virtual UInt_t GetNofGroupfiles() const
89  { MayNotUse("GetNofGroupfiles"); return 0;}
91  { MayNotUse("OverlapCollection"); return 0;}
92  virtual void Add(TGridCollection *)
93  { MayNotUse("Add");}
94  virtual Bool_t Stage(Bool_t /*bulk*/ = kFALSE, Option_t * /*TFileStager option*/ = "")
95  { MayNotUse("Stage"); return kFALSE;}
96  virtual Bool_t Prepare(Bool_t /*bulk*/ = kFALSE)
97  { MayNotUse("Prepare"); return kFALSE;}
98  virtual Bool_t CheckIfOnline(Bool_t /*bulk*/ = kFALSE)
99  { MayNotUse("CheckIfOnline"); return kFALSE;}
100  virtual TDSet *GetDataset(const char *, const char * , const char *)
101  { MayNotUse("GetDataset"); return 0;}
102  virtual TGridResult *GetGridResult(const char * /*filename*/ = "", Bool_t /*onlyonline*/ = kTRUE , Bool_t /*publicaccess*/ = kFALSE )
103  { MayNotUse("GetGridResult"); return 0;}
104  virtual Bool_t LookupSUrls(Bool_t /*verbose*/ = kTRUE)
105  { MayNotUse("LookupSUrls"); return kFALSE;}
106  virtual TList *GetTagFilterList() const
107  { MayNotUse("GetTagFilterList"); return 0;}
108  virtual void SetTagFilterList(TList *)
109  { MayNotUse("SetTagFilterList");}
110  virtual const char* GetCollectionName() const
111  { MayNotUse("GetCollectionName"); return 0;}
112  virtual const char* GetInfoComment() const
113  { MayNotUse("GetInfoComment"); return 0;}
114  virtual TFileCollection* GetFileCollection(const char* /*name*/ = "", const char* /*title*/ = "") const
115  { MayNotUse("GetFileCollection"); return 0;}
116 
117  ClassDef(TGridCollection,1) // ABC managing collection of files on the Grid
118 };
119 
120 #endif
virtual Bool_t OverlapCollection(TGridCollection *)
virtual void Status()
long long Long64_t
Definition: RtypesCore.h:69
virtual UInt_t GetNofGroupfiles() const
virtual TList * GetFileGroupList() const
const char Option_t
Definition: RtypesCore.h:62
virtual const char * GetTURL(const char *="")
This class implements a data set to be used for PROOF processing.
Definition: TDSet.h:153
virtual TDSet * GetDataset(const char *, const char *, const char *)
virtual Bool_t DeselectFile(const char *, Int_t=-1, Int_t=-1)
virtual void Print(Option_t *) const
This method must be overridden when a class wants to print itself.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:50
virtual void Reset()
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual TFile * OpenFile(const char *)
virtual Bool_t Stage(Bool_t=kFALSE, Option_t *="")
virtual TList * GetTagFilterList() const
virtual Bool_t IsSelected(const char *="")
virtual Long64_t GetSize(const char *="")
virtual ~TGridCollection()
virtual Bool_t Remove(TMap *)
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual TGridResult * GetGridResult(const char *="", Bool_t=kTRUE, Bool_t=kFALSE)
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
Definition: TObject.cxx:978
virtual Bool_t LookupSUrls(Bool_t=kTRUE)
A doubly linked list.
Definition: TList.h:47
virtual Bool_t SelectFile(const char *, Int_t=-1, Int_t=-1)
virtual TFileCollection * GetFileCollection(const char *="", const char *="") const
virtual Bool_t ExportXML(const char *, Bool_t=kTRUE, Bool_t=kTRUE, const char *="ROOT xml", const char *="Exported XML")
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual Bool_t DownscaleSelection(UInt_t=2)
virtual const char * GetCollectionName() const
virtual void Add(TGridCollection *)
virtual Bool_t CheckIfOnline(Bool_t=kFALSE)
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:44
virtual Bool_t SetExportUrl(const char *=0)
virtual Bool_t Prepare(Bool_t=kFALSE)
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void SetTagFilterList(TList *)
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
virtual const char * GetSURL(const char *="")
virtual TEntryList * GetEntryList(const char *)
virtual const char * GetInfoComment() const
virtual const char * GetExportUrl()
virtual TMap * Next()
virtual Bool_t InvertSelection()
virtual Bool_t IsOnline(const char *="")
virtual void SetTag(const char *, const char *, TMap *)
const Bool_t kTRUE
Definition: Rtypes.h:91
A List of entry numbers in a TTree or TChain.
Definition: TEntryList.h:27
virtual const char * GetLFN(const char *="")
virtual UInt_t GetNofGroups() const