+ _name = property(fset=_name)
+
+ @property
+ def assigns_automatic_event_class_id(self):
+ return native_bt.stream_class_assigns_automatic_event_class_id(self._ptr)
+
+ def _assigns_automatic_event_class_id(self, auto_id):
+ utils._check_bool(auto_id)
+ return native_bt.stream_class_set_assigns_automatic_event_class_id(self._ptr, auto_id)
+
+ _assigns_automatic_event_class_id = property(fset=_assigns_automatic_event_class_id)
+
+ @property
+ def assigns_automatic_stream_id(self):
+ return native_bt.stream_class_assigns_automatic_stream_id(self._ptr)
+
+ def _assigns_automatic_stream_id(self, auto_id):
+ utils._check_bool(auto_id)
+ return native_bt.stream_class_set_assigns_automatic_stream_id(self._ptr, auto_id)
+
+ _assigns_automatic_stream_id = property(fset=_assigns_automatic_stream_id)
+
+ @property
+ def packets_have_beginning_default_clock_snapshot(self):
+ return native_bt.stream_class_packets_have_beginning_default_clock_snapshot(self._ptr)
+
+ def _packets_have_beginning_default_clock_snapshot(self, value):
+ utils._check_bool(value)
+ native_bt.stream_class_set_packets_have_beginning_default_clock_snapshot(self._ptr, value)
+
+ _packets_have_beginning_default_clock_snapshot = property(fset=_packets_have_beginning_default_clock_snapshot)
+
+ @property
+ def packets_have_end_default_clock_snapshot(self):
+ return native_bt.stream_class_packets_have_end_default_clock_snapshot(self._ptr)
+
+ def _packets_have_end_default_clock_snapshot(self, value):
+ utils._check_bool(value)
+ native_bt.stream_class_set_packets_have_end_default_clock_snapshot(self._ptr, value)
+
+ _packets_have_end_default_clock_snapshot = property(fset=_packets_have_end_default_clock_snapshot)
+
+ @property
+ def supports_discarded_events(self):
+ return native_bt.stream_class_supports_discarded_events(self._ptr)
+
+ def _set_supports_discarded_events(self, supports, with_cs=False):
+ utils._check_bool(supports)
+ utils._check_bool(with_cs)
+
+ if not supports and with_cs:
+ raise ValueError('cannot not support discarded events, but have default clock snapshots')
+
+ native_bt.stream_class_set_supports_discarded_events(self._ptr, supports, with_cs)
+
+ @property
+ def discarded_events_have_default_clock_snapshots(self):
+ return native_bt.stream_class_discarded_events_have_default_clock_snapshots(self._ptr)
+
+ @property
+ def supports_discarded_packets(self):
+ return native_bt.stream_class_supports_discarded_packets(self._ptr)
+
+ def _set_supports_discarded_packets(self, supports, with_cs):
+ utils._check_bool(supports)
+ utils._check_bool(with_cs)
+
+ if not supports and with_cs:
+ raise ValueError('cannot not support discarded packets, but have default clock snapshots')
+
+ native_bt.stream_class_set_supports_discarded_packets(self._ptr, supports, with_cs)
+
+ @property
+ def discarded_packets_have_default_clock_snapshots(self):
+ return native_bt.stream_class_discarded_packets_have_default_clock_snapshots(self._ptr)
+