1 #ifndef ALIXMLCOLLECTION_H
2 #define ALIXMLCOLLECTION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 //-------------------------------------------------------------------------
10 // Class AliXMLCollection
11 // This is the class that creates XML collections after querying the tags
13 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
14 //-------------------------------------------------------------------------
17 #include "TGridCollection.h"
18 #include <Riostream.h>
26 //___________________________________________________________________________
27 class AliXMLCollection : public TGridCollection {
31 AliXMLCollection(const char *localCollectionFile);
32 AliXMLCollection(const AliXMLCollection& collection);
34 virtual ~AliXMLCollection();
36 //____________________________________________________//
38 Bool_t WriteBody(Int_t counter, const char* guid, const char *lfn, const char *turl, TEventList *fEventList);
41 void SetCollectionName(const char* name) {fCollectionName = name;}
43 //____________________________________________________//
44 const char* GetCollectionName() {return fCollectionName.Data();}
46 //____________________________________________________//
49 Bool_t Remove(TMap *map);
50 const char *GetTURL(const char *name) const;
51 const char *GetLFN(const char *name) const;
52 TEntryList *GetEventList(const char *filename) const;
53 Bool_t OverlapCollection(AliXMLCollection * comparator);
55 static AliXMLCollection *Open(const char *localcollectionfile);
57 //____________________________________________________//
59 virtual void ParseXML();
61 TString fXmlFile; // collection XML file
62 TList *fEventList; // list with event file maps
63 TIter *fEventListIter; // event file list iterator
64 TMap *fCurrent; // current event file map
65 TString fCollectionName; //the name of the xml file
66 ofstream fout; // The output stream
68 AliXMLCollection & operator=(const AliXMLCollection & ) {return *this;}
70 ClassDef(AliXMLCollection,0) //(ClassName, ClassVersion)
72 //___________________________________________________________________________