25 py::class_<SourceID> py_sourceid(m,
"SourceID");
26 py_sourceid.def(py::init()).def(py::init<const SourceID::Subsystem&, const SourceID::ID_t&>());
27 py_sourceid.def(py::self < py::self)
28 .def(py::self == py::self)
29 .def(py::self != py::self)
32 return py::hash(py::make_tuple(
static_cast<uint32_t
>(self.
subsystem), self.
id));
34 .def_property_readonly_static(
36 .def_property_readonly_static(
"s_invalid_id",
40 std::ostringstream oss;
44 .def(
"__repr__", [](
const SourceID& gid) {
45 std::ostringstream oss;
46 oss <<
"<daqdataformats::SourceID " << gid <<
">";
50 py::enum_<SourceID::Subsystem>(py_sourceid,
"Subsystem")