Logo ROOT  
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
30
31private:
32 TString fLfn; // logical file name
33 TMap fBrowserObjects; // objects shown in browser
34
35public:
36 TAlienDirectoryEntry(const char *lfn, const char *name) : TNamed(name,name) { fLfn = lfn; }
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
45class TAlienDirectory : public TNamed {
46
47private:
48 TList fEntries; // directory entries
49 TMap fBrowserObjects; // objects shown in browser
50
51public:
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
#define b(i)
Definition: RSha256.hxx:100
const Bool_t kTRUE
Definition: RtypesCore.h:89
#define ClassDef(name, id)
Definition: Rtypes.h:322
char name[80]
Definition: TGX11.cxx:109
virtual ~TAlienDirectoryEntry()
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
void Browse(TBrowser *b)
Browse an Alien directory.
TAlienDirectoryEntry(const char *lfn, const char *name)
void Fill()
Fill directory entry list.
TAlienDirectory(const char *ldn, const char *name=0)
Constructor.
virtual ~TAlienDirectory()
Destructor.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
void Browse(TBrowser *b)
Browser interface to ob status.
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
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
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Basic string class.
Definition: TString.h:131