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