ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 #ifndef ROOT_Tlist
24 #include "TList.h"
25 #endif
26 #ifndef ROOT_TBrowser
27 #include "TBrowser.h"
28 #endif
29 #ifndef ROOT_TNamed
30 #include "TNamed.h"
31 #endif
32 #ifndef ROOT_TMap
33 #include "TMap.h"
34 #endif
35 
36 
37 class TAlienDirectoryEntry : public TNamed {
38 
39 private:
40  TString fLfn; // logical file name
41  TMap fBrowserObjects; // objects shown in browser
42 
43 public:
44  TAlienDirectoryEntry(const char *lfn, const char *name) : TNamed(name,name) { fLfn = lfn; }
45  virtual ~TAlienDirectoryEntry() { }
46  Bool_t IsFolder() const { return kTRUE; }
47  void Browse(TBrowser *b);
48 
49  ClassDef(TAlienDirectoryEntry,1) // Creates Directory files entries for the AliEn middleware
50 };
51 
52 
53 class TAlienDirectory : public TNamed {
54 
55 private:
56  TList fEntries; // directory entries
57  TMap fBrowserObjects; // objects shown in browser
58 
59 public:
60  TAlienDirectory(const char *ldn, const char *name=0);
61  virtual ~TAlienDirectory();
62  void Fill();
63  Bool_t IsFolder() const { return kTRUE; }
64  void Browse(TBrowser *b);
65 
66  ClassDef(TAlienDirectory,1) // Creates Directory files for the AliEn middleware
67 };
68 
69 #endif
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
void Browse(TBrowser *b)
Browse object. May be overridden for another default action.
TAlienDirectory(const char *ldn, const char *name=0)
void Browse(TBrowser *b)
Browser interface to ob status.
Basic string class.
Definition: TString.h:137
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)...
virtual ~TAlienDirectory()
Destructor.
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
TAlienDirectoryEntry(const char *lfn, const char *name)
A doubly linked list.
Definition: TList.h:47
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
void Fill()
Fill directory entry list.
virtual ~TAlienDirectoryEntry()
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:44
#define name(a, b)
Definition: linkTestLib0.cpp:5
const Bool_t kTRUE
Definition: Rtypes.h:91