Public Member Functions | Private Member Functions | Private Attributes
rqt_console.filters.message_filter.MessageFilter Class Reference
Inheritance diagram for rqt_console.filters.message_filter.MessageFilter:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 48 of file message_filter.py.


Member Function Documentation

Definition at line 89 of file message_filter.py.

Definition at line 73 of file message_filter.py.

Setter for _regex
:param checked: boolean flag to set ''bool''
:emits filter_changed_signal: If _enabled is true

Definition at line 63 of file message_filter.py.

Setter for _text
:param text: text to set ''str''
:emits filter_changed_signal: If _enabled is true

Definition at line 53 of file message_filter.py.

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 76 of file message_filter.py.


Member Data Documentation

Definition at line 48 of file message_filter.py.

Definition at line 48 of file message_filter.py.


The documentation for this class was generated from the following file:


rqt_console
Author(s): Aaron Blasdel
autogenerated on Wed May 3 2017 02:48:27