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 namespace art {
5 
6  using ProductStatus = unsigned char;
7 
8  namespace productstatus {
9  constexpr ProductStatus
10  present() noexcept
11  {
12  return 0x0;
13  } // Product was made successfully
14  constexpr ProductStatus
15  neverCreated() noexcept
16  {
17  return 0x1;
18  } // Product was not made successfully
19  constexpr ProductStatus
20  dropped() noexcept
21  {
22  return 0x2;
23  } // Product was not made successfully
24  constexpr ProductStatus
25  unknown() noexcept
26  {
27  return 0xfe;
28  } // Status unknown (used for backward compatibility)
29  constexpr ProductStatus
30  uninitialized() noexcept
31  {
32  return 0xff;
33  } // Status not set
34 
35  constexpr bool
36  present(ProductStatus const status) noexcept
37  {
38  return status == present();
39  }
40  constexpr bool
42  {
43  return status == neverCreated();
44  }
45  constexpr bool
46  dropped(ProductStatus const status) noexcept
47  {
48  return status == dropped();
49  }
50  constexpr bool
51  unknown(ProductStatus const status) noexcept
52  {
53  return status == unknown();
54  }
55  constexpr bool
57  {
58  return status == uninitialized();
59  }
60  } // productstatus
61 } // art
62 
63 #endif /* canvas_Persistency_Provenance_ProductStatus_h */
64 
65 // Local Variables:
66 // mode: c++
67 // End:
int status
Definition: fabricate.py:1613
constexpr ProductStatus dropped() noexcept
Definition: ProductStatus.h:20
constexpr ProductStatus uninitialized() noexcept
Definition: ProductStatus.h:30
constexpr ProductStatus unknown() noexcept
Definition: ProductStatus.h:25
unsigned char ProductStatus
Definition: ProductStatus.h:6
constexpr ProductStatus neverCreated() noexcept
Definition: ProductStatus.h:15
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8
constexpr ProductStatus present() noexcept
Definition: ProductStatus.h:10