1 #ifndef ALISHUTTLESTATUS_H
2 #define ALISHUTTLESTATUS_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 // This class stores the status of the Shuttle processing for a given run and a given detector
15 class AliShuttleStatus : public TObject
28 // TODO see if one can add status of storage here
32 AliShuttleStatus(const AliShuttleStatus& c);
36 AliShuttleStatus& operator=(const AliShuttleStatus& c);
37 virtual void Copy(TObject& c) const;
39 AliShuttleStatus(Status status);
41 UInt_t GetTimeStamp() const { return fTimeStamp; }
42 void SetTimeStamp(UInt_t timeStamp) { fTimeStamp = timeStamp; }
44 Status GetStatus() const { return fStatus; }
45 const char* GetStatusName() const { return GetStatusName(fStatus); }
46 void SetStatus(Status status);
48 Int_t GetCount() const { return fCount; }
49 void SetCount(Int_t count) { fCount = count; }
50 void IncreaseCount() { fCount++; }
52 static const char* GetStatusName(Status status);
55 UInt_t fTimeStamp; // timestamp of the last change
56 Status fStatus; // status of the processing
57 Int_t fCount; // number of retries
59 ClassDef(AliShuttleStatus, 1);