GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgStatus.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::AlgStatus
5 
6 \brief Encapsulates an enumeration of possible algorithm execution states.
7 
8 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created May 03, 2004
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _ALG_STATUS_H_
19 #define _ALG_STATUS_H_
20 
21 #ifndef ROOT_Rtypes
22 #include "Rtypes.h"
23 #endif
24 
25 namespace genie {
26 
27 typedef enum EAlgStatus {
28 
32 
33 } AlgStatus_t;
34 
35 
36 class AlgStatus {
37 
38 public:
39 
40  static const char * AsString(AlgStatus_t alg) {
41  switch (alg) {
42  case kAlgFail: return "Algorithm failed"; break;
43  case kAlgSuccess: return "Algorithm run successfully"; break;
44  case kAlgUndefinedStatus: return "Undefined alg status"; break;
45  default: break;
46  }
47  return " ";
48  }
49 
50 };
51 
52 }
53 #endif
enum genie::EAlgStatus AlgStatus_t
static const char * AsString(AlgStatus_t alg)
Definition: AlgStatus.h:40
EAlgStatus
Definition: AlgStatus.h:27
Encapsulates an enumeration of possible algorithm execution states.
Definition: AlgStatus.h:36