Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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