+ status = native_bt.stream_class_set_packet_context_field_class(
+ self._ptr, packet_context_field_class._ptr
+ )
+ utils._handle_func_status(
+ status, "cannot set stream class' packet context field class"
+ )
+
+ _packet_context_field_class = property(fset=_packet_context_field_class)
+
+ def _event_common_context_field_class(self, event_common_context_field_class):
+ set_context_fn = native_bt.stream_class_set_event_common_context_field_class
+ status = set_context_fn(self._ptr, event_common_context_field_class._ptr)
+ utils._handle_func_status(
+ status, "cannot set stream class' event context field type"
+ )
+
+ _event_common_context_field_class = property(fset=_event_common_context_field_class)
+
+ def _default_clock_class(self, clock_class):
+ native_bt.stream_class_set_default_clock_class(self._ptr, clock_class._ptr)
+
+ _default_clock_class = property(fset=_default_clock_class)
+
+ @classmethod
+ def _validate_create_params(
+ cls,
+ name,
+ user_attributes,
+ packet_context_field_class,
+ event_common_context_field_class,
+ default_clock_class,
+ assigns_automatic_event_class_id,
+ assigns_automatic_stream_id,
+ supports_packets,
+ packets_have_beginning_default_clock_snapshot,
+ packets_have_end_default_clock_snapshot,
+ supports_discarded_events,
+ discarded_events_have_default_clock_snapshots,
+ supports_discarded_packets,
+ discarded_packets_have_default_clock_snapshots,
+ ):
+ # Name
+ if name is not None:
+ utils._check_str(name)