LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ProductStatus.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_ProductStatus_h
2 #define canvas_Persistency_Provenance_ProductStatus_h
3 
4 /*----------------------------------------------------------------------
5 
6 ProductStatus:
7 
8 ----------------------------------------------------------------------*/
9 
10 namespace art {
11 
12  typedef unsigned char ProductStatus;
13 
14  namespace productstatus {
15  inline ProductStatus
17  {
18  return 0x0;
19  } // Product was made successfully
20  inline ProductStatus
22  {
23  return 0x1;
24  } // Product was not made successfully
25  inline ProductStatus
27  {
28  return 0x2;
29  } // Product was not made successfully
30  inline ProductStatus
32  {
33  return 0xfe;
34  } // Status unknown (used for backward compatibility)
35  inline ProductStatus
37  {
38  return 0xff;
39  } // Status not set
40 
41  inline bool
42  present(ProductStatus status)
43  {
44  return status == present();
45  }
46  inline bool
47  neverCreated(ProductStatus status)
48  {
49  return status == neverCreated();
50  }
51  inline bool
52  dropped(ProductStatus status)
53  {
54  return status == dropped();
55  }
56  inline bool
57  unknown(ProductStatus status)
58  {
59  return status == unknown();
60  }
61  inline bool
62  uninitialized(ProductStatus status)
63  {
64  return status == uninitialized();
65  }
66  } // productstatus
67 
68 } // art
69 
70 #endif /* canvas_Persistency_Provenance_ProductStatus_h */
71 
72 // Local Variables:
73 // mode: c++
74 // End:
ProductStatus unknown()
Definition: ProductStatus.h:31
ProductStatus uninitialized()
Definition: ProductStatus.h:36
unsigned char ProductStatus
Definition: ProductStatus.h:12
ProductStatus dropped()
Definition: ProductStatus.h:26
HLT enums.
ProductStatus present()
Definition: ProductStatus.h:16
ProductStatus neverCreated()
Definition: ProductStatus.h:21