Completely Updated (Mario Sitta)
[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);
22 AliTaskLoader(const AliTaskLoader& source);
23 AliTaskLoader& operator=(const AliTaskLoader& source);
24 virtual ~AliTaskLoader(){};
25
26 TObject* Get() const;
27 virtual TTask* Task() const {return dynamic_cast<TTask*>(Get());}
28 virtual void Clean();
29
30 protected:
31 Int_t AddToBoard(TObject* obj);
32 void RemoveFromBoard(TObject* obj);
33 TTask* GetParentalTask() const;
34
35 private:
36 TTask* fParentalTask; // Parental task
37
38 ClassDef(AliTaskLoader,1)
39 };
40
41#endif
42
43