+ @property
+ def trace_class(self):
+ tc_ptr = self._borrow_trace_class_ptr(self._ptr)
+
+ if tc_ptr is not None:
+ return self._trace_class_cls._create_from_ptr_and_get_ref(tc_ptr)
+
+ @property
+ def user_attributes(self):
+ ptr = self._borrow_user_attributes_ptr(self._ptr)
+ assert ptr is not None
+ return bt2_value._create_from_ptr_and_get_ref(ptr)
+
+ @property
+ def name(self):
+ return native_bt.stream_class_get_name(self._ptr)
+
+ @property
+ def assigns_automatic_event_class_id(self):
+ return native_bt.stream_class_assigns_automatic_event_class_id(self._ptr)
+
+ @property
+ def assigns_automatic_stream_id(self):
+ return native_bt.stream_class_assigns_automatic_stream_id(self._ptr)
+
+ @property
+ def supports_packets(self):
+ return native_bt.stream_class_supports_packets(self._ptr)
+
+ @property
+ def packets_have_beginning_default_clock_snapshot(self):
+ return native_bt.stream_class_packets_have_beginning_default_clock_snapshot(
+ self._ptr
+ )
+
+ @property
+ def packets_have_end_default_clock_snapshot(self):
+ return native_bt.stream_class_packets_have_end_default_clock_snapshot(self._ptr)
+
+ @property
+ def supports_discarded_events(self):
+ return native_bt.stream_class_supports_discarded_events(self._ptr)
+
+ @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)
+
+ @property
+ def discarded_packets_have_default_clock_snapshots(self):
+ return native_bt.stream_class_discarded_packets_have_default_clock_snapshots(
+ self._ptr
+ )
+
+ @property
+ def id(self):
+ id = native_bt.stream_class_get_id(self._ptr)
+
+ if id < 0:
+ return
+
+ return id
+
+ @property
+ def packet_context_field_class(self):
+ fc_ptr = self._borrow_packet_context_field_class_ptr(self._ptr)
+
+ if fc_ptr is None:
+ return
+
+ return bt2_field_class._create_field_class_from_ptr_and_get_ref(fc_ptr)
+
+ @property
+ def event_common_context_field_class(self):
+ fc_ptr = self._borrow_event_common_context_field_class_ptr(self._ptr)
+
+ if fc_ptr is None:
+ return
+
+ return bt2_field_class._create_field_class_from_ptr_and_get_ref(fc_ptr)
+
+ @property
+ def default_clock_class(self):
+ cc_ptr = self._borrow_default_clock_class_ptr(self._ptr)
+ if cc_ptr is None:
+ return
+
+ return self._clock_class_cls._create_from_ptr_and_get_ref(cc_ptr)
+
+
+class _StreamClass(_StreamClassConst):
+ _get_ref = staticmethod(native_bt.stream_class_get_ref)
+ _put_ref = staticmethod(native_bt.stream_class_put_ref)
+ _borrow_event_class_ptr_by_id = staticmethod(
+ native_bt.stream_class_borrow_event_class_by_id
+ )
+ _borrow_event_class_ptr_by_index = staticmethod(
+ native_bt.stream_class_borrow_event_class_by_index
+ )
+ _borrow_trace_class_ptr = staticmethod(native_bt.stream_class_borrow_trace_class)
+ _borrow_packet_context_field_class_ptr = staticmethod(
+ native_bt.stream_class_borrow_packet_context_field_class
+ )
+ _borrow_event_common_context_field_class_ptr = staticmethod(
+ native_bt.stream_class_borrow_event_common_context_field_class
+ )
+ _borrow_default_clock_class_ptr = staticmethod(
+ native_bt.stream_class_borrow_default_clock_class
+ )
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.stream_class_borrow_user_attributes
+ )
+
+ _event_class_cls = property(lambda s: bt2_event_class._EventClass)
+ _trace_class_cls = property(lambda s: _bt2_trace_class()._TraceClass)
+ _clock_class_cls = property(lambda s: bt2_clock_class._ClockClass)
+