/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ //----------------------------------------------------------------- // Implementation of the AliXMLCollection class // This is the class that creates XML collections after querying the tags // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch //----------------------------------------------------------------- //ROOT #include #include #include #include "AliXMLCollection.h" ClassImp(AliXMLCollection) //___________________________________________________________________________ AliXMLCollection::AliXMLCollection() : TObject(), fCollectionName(), fout() { //Default constructor } //___________________________________________________________________________ AliXMLCollection::~AliXMLCollection() { //Destructor } //___________________________________________________________________________ Bool_t AliXMLCollection::WriteHeader() { //Creates the xml output file TString xmlName = fCollectionName; xmlName += ".xml"; TString collectionHeader = "\n"; fout<<"\n"; fout<<" "<GetN(); i++) { listline += list->GetEntry(i); listline += ","; } listline = listline(0,listline.Length()-1); TString line0 = ""; TString line1 = "\n"; return kTRUE; } //___________________________________________________________________________ Bool_t AliXMLCollection::Export() { //Closes the stream fout<<" "<<"\n"; fout<<"\n"; fout.close(); return kTRUE; }