Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:30:18

0001 // @(#)root/net:$Id$
0002 // Author: Jan Fiete Grosse-Oetringhaus   06/10/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGridJobStatus
0013 #define ROOT_TGridJobStatus
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TGridJobStatus                                                       //
0018 //                                                                      //
0019 // Abstract base class containing the status of a Grid job.             //
0020 //                                                                      //
0021 //////////////////////////////////////////////////////////////////////////
0022 
0023 #include "TNamed.h"
0024 
0025 namespace ROOT::Deprecated {
0026 
0027 class TGridJobStatus : public TNamed {
0028 
0029 public:
0030    // Subset of Grid job states for common GetStatus function
0031    enum EGridJobStatus {
0032 // clang++ <v20 (-Wshadow) complains about shadowing TQpSolverBase.h global enum ETerminationCode. Let's silence warning:
0033 #if defined(__clang__) && __clang_major__ < 20
0034 #pragma clang diagnostic push
0035 #pragma clang diagnostic ignored "-Wshadow"
0036 #endif
0037          kUNKNOWN,
0038 #if defined(__clang__) && __clang_major__ < 20
0039 #pragma clang diagnostic pop
0040 #endif
0041       kWAITING, kRUNNING, kABORTED, kFAIL, kDONE };
0042 
0043   TGridJobStatus() { }
0044   virtual ~TGridJobStatus() { }
0045 
0046   // These functions reduces the possible job states to the subset given above
0047   // in EGridJobStatus, for detailed status information query the specific
0048   // implementation
0049   virtual EGridJobStatus GetStatus() const = 0;
0050 
0051   ClassDefOverride(TGridJobStatus,1)  // ABC defining status of a Grid job
0052 };
0053 
0054 } // namespace ROOT::Deprecated
0055 
0056 using TGridJobStatus R__DEPRECATED(6, 42, "TGridJobStatus is expected to be unused and thus deprecated") =
0057    ROOT::Deprecated::TGridJobStatus;
0058 
0059 #endif