Public Member Functions | |
def | __init__ |
def | has_filter |
def | set_regex |
def | set_text |
def | test_message |
Private Member Functions | |
def | _test_message |
Private Attributes | |
_regex | |
_text |
Contains filter logic for a message filter. If the regex flag is False simple 'is this in that' text matching is used on _text. If the regex flag is True _text is treated as a regular expression with one exception. If it does not start with a ^ a .* is appended, and if it does not end with a $ then a .* is added to the end. The filter_changed signal should be connected to a slot which notifies the overall filtering system that it needs to reevaluate all entries.
Definition at line 37 of file message_filter.py.
Definition at line 49 of file message_filter.py.
def rqt_console.filters.message_filter.MessageFilter._test_message | ( | self, | |
value | |||
) | [private] |
Definition at line 90 of file message_filter.py.
Definition at line 74 of file message_filter.py.
def rqt_console.filters.message_filter.MessageFilter.set_regex | ( | self, | |
checked | |||
) |
Setter for _regex :param checked: boolean flag to set ''bool'' :emits filter_changed_signal: If _enabled is true
Definition at line 64 of file message_filter.py.
def rqt_console.filters.message_filter.MessageFilter.set_text | ( | self, | |
text | |||
) |
Setter for _text :param text: text to set ''str'' :emits filter_changed_signal: If _enabled is true
Definition at line 54 of file message_filter.py.
def rqt_console.filters.message_filter.MessageFilter.test_message | ( | self, | |
message | |||
) |
Tests if the message matches the filter. If the regex flag is False simple 'is this in that' text matching is used on _text. If the regex flag is True _text is treated as a regular expression with one exception. If it does not start with a ^ a .* is appended, and if it does not end with a $ then a .* is added to the end. :param message: the message to be tested against the filters, ''Message'' :returns: True if the message matches, ''bool''
Definition at line 77 of file message_filter.py.
Definition at line 49 of file message_filter.py.
Definition at line 49 of file message_filter.py.