EX-Display
EX-Display
Loading...
Searching...
No Matches
Stream Class Reference

Class to mock the basic Stream function equivalent of the Arduino framework. More...

#include <Stream.h>

Public Member Functions

void print (const std::string &string)
 Print method.
 
void println (const std::string &string)
 Println method.
 
int available () const
 Check number of characters available in the buffer.
 
int read ()
 Read a character from the buffer.
 
void clear ()
 Clear the buffer.
 

Public Attributes

std::string buffer
 

Detailed Description

Class to mock the basic Stream function equivalent of the Arduino framework.

Member Function Documentation

◆ available()

int Stream::available ( ) const
inline

Check number of characters available in the buffer.

Returns
Number of characters
Here is the caller graph for this function:

◆ clear()

void Stream::clear ( )
inline

Clear the buffer.

Here is the caller graph for this function:

◆ print()

void Stream::print ( const std::string &  string)
inline

Print method.

Parameters
stringString to print

◆ println()

void Stream::println ( const std::string &  string)
inline

Println method.

Parameters
stringString to print
Here is the caller graph for this function:

◆ read()

int Stream::read ( )
inline

Read a character from the buffer.

Returns
The next char in the buffer, -1 for empty
Here is the caller graph for this function:

Member Data Documentation

◆ buffer

std::string Stream::buffer

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