Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TAlienJobStatus.h
Go to the documentation of this file.
1 // @(#)root/alien:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 06/10/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAlienJobStatus
13 #define ROOT_TAlienJobStatus
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAlienJobStatus //
18 // //
19 // Alien implementation of TGridJobStatus. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGridJobStatus.h"
24 #include "TMap.h"
25 
26 class TAlienJob;
27 class TAlienMasterJob;
28 
29 
30 class TAlienJobStatus : public TGridJobStatus {
31 
32 friend class TAlienJob;
33 friend class TAlienMasterJob;
34 
35 private:
36  TMap fStatus; // Contains the status information of the job.
37  // In the Alien implementation this is a string, string map.
38  TString fJdlTag; // JdlTag
39 
40  void ClearSetStatus(const char *status);
41 
42 public:
43  TAlienJobStatus() { }
44  TAlienJobStatus(TMap *status);
45  virtual ~TAlienJobStatus();
46 
47  const char *GetJdlKey(const char *key);
48  const char *GetKey(const char *key);
49 
50  virtual EGridJobStatus GetStatus() const;
51  virtual void Print(Option_t *) const;
52 
53  void PrintJob(Bool_t full = kTRUE) const;
54 
55  Bool_t IsFolder() const { return kTRUE;}
56  void Browse(TBrowser *b);
57 
58  ClassDef(TAlienJobStatus,1) // Alien implementation of TGridJobStatus
59 };
60 
61 #endif