LIRC libraries
Linux Infrared Remote Control
Loading...
Searching...
No Matches
lirc.client.ReplyParser Class Reference

Handles the actual parsing of a command reply. More...

Inheritance diagram for lirc.client.ReplyParser:
lirc.client.Reply

Public Member Functions

 __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.
 
- Public Member Functions inherited from lirc.client.Reply

Public Attributes

 last_line = line
 
 result = Result.OK
 
- Public Attributes inherited from lirc.client.Reply
 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).
 

Protected Attributes

 _state = self._State.BEGIN
 
 _lines_expected = None
 
 _buffer = bytearray(0)
 

Detailed Description

Handles the actual parsing of a command reply.

Definition at line 442 of file client.py.

Constructor & Destructor Documentation

◆ __init__()

lirc.client.ReplyParser.__init__ ( self)

Reimplemented from lirc.client.Reply.

Definition at line 444 of file client.py.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ _buffer

lirc.client.ReplyParser._buffer = bytearray(0)
protected

Definition at line 448 of file client.py.

◆ _lines_expected

lirc.client.ReplyParser._lines_expected = None
protected

Definition at line 447 of file client.py.

◆ _state

lirc.client.ReplyParser._state = self._State.BEGIN
protected

Definition at line 446 of file client.py.

◆ last_line

lirc.client.ReplyParser.last_line = line

Definition at line 470 of file client.py.

◆ result

lirc.client.ReplyParser.result = Result.OK

Definition at line 473 of file client.py.


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