SensESP 3.0.0-beta.6
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::StreamCharProducer Class Reference

ValueProducer that reads from a Stream and produces each character. More...

#include <sensesp/system/stream_producer.h>

Inheritance diagram for sensesp::StreamCharProducer:
[legend]

Public Member Functions

 StreamCharProducer (Stream *stream)
 
- Public Member Functions inherited from sensesp::ValueProducer< char >
 ValueProducer ()
 
 ValueProducer (const char &initial_value)
 
virtual const char & get () const
 
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< char, 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< char, 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< char, typenameVConsumer::input_type >::value, VConsumer * >::type connect_to (VConsumer &consumer)
 
void emit (const char &new_value)
 
- Public Member Functions inherited from sensesp::Observable
 Observable ()
 
 Observable (Observable &&other)
 Move constructor.
 
void notify ()
 
void attach (std::function< void()> observer)
 

Protected Attributes

Stream * stream_
 
reactesp::StreamEvent * read_event_
 
- Protected Attributes inherited from sensesp::ValueProducer< char >
char output_
 

Detailed Description

ValueProducer that reads from a Stream and produces each character.

Definition at line 15 of file stream_producer.h.

Constructor & Destructor Documentation

◆ StreamCharProducer()

sensesp::StreamCharProducer::StreamCharProducer ( Stream * stream)
inline

Definition at line 17 of file stream_producer.h.

Here is the call graph for this function:

Member Data Documentation

◆ read_event_

reactesp::StreamEvent* sensesp::StreamCharProducer::read_event_
protected

Definition at line 28 of file stream_producer.h.

◆ stream_

Stream* sensesp::StreamCharProducer::stream_
protected

Definition at line 27 of file stream_producer.h.


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