14 py::enum_<DataConsistencyGroup::MatchingMode>(mod,
"MatchingMode")
15 .value(
"none", DataConsistencyGroup::MatchingMode::none)
16 .value(
"exact", DataConsistencyGroup::MatchingMode::exact)
17 .value(
"historized", DataConsistencyGroup::MatchingMode::historized)
21 py::class_<PyDataConsistencyGroup>(mod,
"DataConsistencyGroup")
22 .def(py::init<py::args, DataConsistencyGroup::MatchingMode, unsigned>(),
23 "Construct DataConsistencyGroup with given list of accessors", py::kw_only(),
24 py::arg(
"mode") = DataConsistencyGroup::MatchingMode::exact,
25 py::arg(
"histLen") = DataConsistencyGroup::defaultHistLen)
27 "Add register to group.\n\nThe same TransferElement can be part of multiple DataConsistencyGroups. The "
28 "register must be must be readable, and it must have AccessMode::wait_for_new_data.",
29 py::arg(
"element"), py::arg(
"histLen") = DataConsistencyGroup::defaultHistLen)
31 "This function updates consistentElements, a set of TransferElementID.\n\nIt returns true, if a consistent "
32 "state is reached. It returns false if an TransferElementID was updated, that was not added to this Group.",
33 py::arg(
"transferelementid"))