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.
|
|
|
| last_line = line |
|
| result = Result.OK |
|
| 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 442 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 455 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 451 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 |
◆ last_line
lirc.client.ReplyParser.last_line = line |
◆ result
lirc.client.ReplyParser.result = Result.OK |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/lirc-0.10.0-build/lirc-0.10.0/python-pkg/lirc/client.py