ValueProducer that reads from a Stream and produces a full line.
More...
#include <sensesp/system/stream_producer.h>
|
| StreamLineProducer (Stream *stream, std::shared_ptr< reactesp::EventLoop > event_loop=event_loop(), int max_line_length=256) |
|
| ValueProducer () |
|
| ValueProducer (const String &initial_value) |
|
virtual const String & | get () const |
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< String, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type | connect_to (std::shared_ptr< VConsumer > consumer) |
| Connect a producer to a transform with a different input type.
|
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< String, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer *consumer) |
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< String, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer &consumer) |
|
void | emit (const String &new_value) |
|
| Observable () |
|
| Observable (Observable &&other) |
| Move constructor.
|
|
void | notify () |
|
void | attach (std::function< void()> observer) |
|
ValueProducer that reads from a Stream and produces a full line.
Definition at line 36 of file stream_producer.h.
◆ StreamLineProducer()
sensesp::StreamLineProducer::StreamLineProducer |
( |
Stream * | stream, |
|
|
std::shared_ptr< reactesp::EventLoop > | event_loop = event_loop(), |
|
|
int | max_line_length = 256 ) |
|
inline |
◆ receive_line()
void sensesp::StreamLineProducer::receive_line |
( |
| ) |
|
|
inlineprotected |
◆ buf_
char* sensesp::StreamLineProducer::buf_ |
|
protected |
◆ buf_pos
int sensesp::StreamLineProducer::buf_pos = 0 |
|
protected |
◆ max_line_length_
const int sensesp::StreamLineProducer::max_line_length_ |
|
protected |
◆ read_event_
reactesp::StreamEvent* sensesp::StreamLineProducer::read_event_ |
|
protected |
◆ stream_
Stream* sensesp::StreamLineProducer::stream_ |
|
protected |
The documentation for this class was generated from the following file: