Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
LineFilter Class Reference

simple example of a pipe that receives bytes as they come in and splits them into \n delimited lines. More...

#include <line.h>

Inherits Source< Buffer< uint8_t > >.

Collaboration diagram for LineFilter:
[legend]

Public Member Functions

 LineFilter (Source< Buffer< uint8_t > > &p)
 set underlying Source
 
bool empty () override
 check if source is empty
 
Buffer< uint8_t > pop () override
 pull object from source does not check for data. guard by using 'if (!empty) { ... }'
 

Detailed Description

simple example of a pipe that receives bytes as they come in and splits them into \n delimited lines.

also filters the newline out (both LF and CRLF style newlines)


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