Logo ROOT   6.14/05
Reference Guide
TAlienDirectory.h
Go to the documentation of this file.
1 // @(#)root/alien:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 28/9/2004
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_TAlienDirectory
13 #define ROOT_TAlienDirectory
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAlienDirectory //
18 // //
19 // Class which creates Directory files for the AliEn middleware. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TList.h"
24 #include "TBrowser.h"
25 #include "TNamed.h"
26 #include "TMap.h"
27 
28 
29 class TAlienDirectoryEntry : public TNamed {
30 
31 private:
32  TString fLfn; // logical file name
33  TMap fBrowserObjects; // objects shown in browser
34 
35 public:
36  TAlienDirectoryEntry(const char *lfn, const char *name) : TNamed(name,name) { fLfn = lfn; }
37  virtual ~TAlienDirectoryEntry() { }
38  Bool_t IsFolder() const { return kTRUE; }
39  void Browse(TBrowser *b);
40 
41  ClassDef(TAlienDirectoryEntry,1) // Creates Directory files entries for the AliEn middleware
42 };
43 
44 
45 class TAlienDirectory : public TNamed {
46 
47 private:
48  TList fEntries; // directory entries
49  TMap fBrowserObjects; // objects shown in browser
50 
51 public:
52  TAlienDirectory(const char *ldn, const char *name=0);
53  virtual ~TAlienDirectory();
54  void Fill();
55  Bool_t IsFolder() const { return kTRUE; }
56  void Browse(TBrowser *b);
57 
58  ClassDef(TAlienDirectory,1) // Creates Directory files for the AliEn middleware
59 };
60 
61 #endif
void Browse(TBrowser *b)
Browse an Alien directory.
Basic string class.
Definition: TString.h:131
bool Bool_t
Definition: RtypesCore.h:59
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
#define ClassDef(name, id)
Definition: Rtypes.h:320
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TAlienDirectoryEntry(const char *lfn, const char *name)
A doubly linked list.
Definition: TList.h:44
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
virtual ~TAlienDirectoryEntry()
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
const Bool_t kTRUE
Definition: RtypesCore.h:87
char name[80]
Definition: TGX11.cxx:109