Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliTaskLoader.h
CommitLineData
a9bbb414 1#ifndef ALITASKLOADER_H
2#define ALITASKLOADER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6////////////////////////////////////////////
7// //
8// class AliTaskLoader //
9// //
10// //
11////////////////////////////////////////////
12
13/* $Id$ */
14
15#include "AliBaseLoader.h"
16
17class AliTaskLoader: public AliBaseLoader
18 {
19 public:
20 AliTaskLoader():fParentalTask(0x0){};
21 AliTaskLoader(const TString& name, AliDataLoader* dl, TTask* parentaltask, Bool_t storeontop = kFALSE);
a9bbb414 22 virtual ~AliTaskLoader(){};
23
24 TObject* Get() const;
25 virtual TTask* Task() const {return dynamic_cast<TTask*>(Get());}
26 virtual void Clean();
27
28 protected:
29 Int_t AddToBoard(TObject* obj);
30 void RemoveFromBoard(TObject* obj);
31 TTask* GetParentalTask() const;
32
33 private:
dc86eb51 34 AliTaskLoader(const AliTaskLoader&); //Not implemented
35 AliTaskLoader& operator=(const AliTaskLoader&); //Not implemented
36
a9bbb414 37 TTask* fParentalTask; // Parental task
38
39 ClassDef(AliTaskLoader,1)
40 };
41
42#endif
43
44