rqt_console.filters.time_filter module

class rqt_console.filters.time_filter.TimeFilter(*args: Any, **kwargs: Any)

Bases: BaseFilter

Contains filter logic for a time filter. If _stop_time_enabled is true then the message’s time value must be between the dates provided to be considered a match If _stop_time_enabled is false then the time must simply be after _start_time

has_filter()
set_start_time(time)

Setter for _start_time :param time” start datetime for filter ‘’QDateTime’’ :emits filter_changed_signal: If _enabled is true

set_stop_time(time)

Setter for _stop_time :param time” stop datetime for filter ‘’QDateTime’’ :emits filter_changed_signal: If _enabled is true

set_stop_time_enabled(checked)

Setter for _stop_time_enabled :param checked” boolean flag to set ‘’bool’’ :emits filter_changed_signal: If _enabled is true

test_message(message)

Tests if the message matches the filter. If _stop_time_enabled is true then the message’s time value must be between the dates provided to be considered a match If _stop_time_enabled is false then the time must simply be after _start_time :param message: the message to be tested against the filters, ‘’Message’’ :returns: True if the message matches, ‘’bool’’