5 "This is intentionally designed to tell the developer to update the static_assert checks (including this "
6 "one) when the version is bumped");
7static_assert(
sizeof(
SourceID) == 8,
"SourceID struct size different than expected!");
8static_assert(offsetof(SourceID,
version) == 0,
"SourceID version field not at expected offset");
9static_assert(offsetof(SourceID, subsystem) == 2,
"SourceID subsystem field not at expected offset");
10static_assert(offsetof(SourceID,
id) == 4,
"SourceID id field not at expected offset");
33 return o <<
"subsystem: " << source_id.
subsystem <<
" id: " << source_id.
id;
63 is >> tmp >> source_id.
subsystem >> tmp >> source_id.
id;
72 return std::tuple(subsystem,
id) < std::tuple(other.subsystem, other.id);
78 return (*
this) < other || other < (*this);
84 return !((*this) != other);
94 return "Detector_Readout";
96 return "HW_Signals_Interface";
108 if (typestring ==
"Detector_Readout")
110 if (typestring ==
"HW_Signals_Interface")
112 if (typestring ==
"Trigger")
114 if (typestring ==
"TR_Builder")
daqdataformats::SourceID SourceID
Copy daqdataformats::SourceID.