Handles the actual parsing of a command reply.
More...
|
| | __init__ (self) |
| bool | is_completed (self) |
| | Returns true if no more reply input is required.
|
| | feed (self, str line) |
| | Enter a line of data into parsing FSM, update state.
|
| | __init__ (self) |
|
| | result = Result.INCOMPLETE |
| | Enum Result, reflects parser state.
|
| | success = None |
| | bool, reflects SUCCESS/ERROR.
|
| list | data = [] |
| | List of lines, the command DATA payload.
|
| bool | sighup = False |
| | bool, reflects if a SIGHUP package has been received
|
| str | last_line = '' |
| | str, last input line (for error messages).
|
Handles the actual parsing of a command reply.
Definition at line 449 of file client.py.
◆ __init__()
| lirc.client.ReplyParser.__init__ |
( |
| self | ) |
|
◆ feed()
| lirc.client.ReplyParser.feed |
( |
| self, |
|
|
str | line ) |
Enter a line of data into parsing FSM, update state.
Definition at line 462 of file client.py.
◆ is_completed()
| bool lirc.client.ReplyParser.is_completed |
( |
| self | ) |
|
Returns true if no more reply input is required.
Definition at line 458 of file client.py.
◆ _buffer
| lirc.client.ReplyParser._buffer = bytearray(0) |
|
protected |
◆ _lines_expected
| lirc.client.ReplyParser._lines_expected = None |
|
protected |
◆ _state
| lirc.client.ReplyParser._state = self._State.BEGIN |
|
protected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/lirc-0.10.2-build/lirc-0.10.2/python-pkg/lirc/client.py