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

simple pipe that will append a newline to every data packet More...

#include <line.h>

Inherits Sink< Buffer< uint8_t > >.

Collaboration diagram for LineDelimiter:
[legend]

Public Member Functions

 LineDelimiter (Sink< Buffer< uint8_t > > &p)
 set underlying Sink
 
bool full () override
 check if sink is full
 
void push (const Buffer< uint8_t > &b) override
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
void push (Buffer< uint8_t > &&b) override
 move semantics does not check for space. guard by using 'if (!full) { ... }'
 
void trypush (Buffer< uint8_t > &&t)
 use this if you don't care if it's going to be successful. data gets discarded if sink is full.
 

Detailed Description

simple pipe that will append a newline to every data packet


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