modm API documentation
modm_test::platform::IODevice Class Reference

#include </tmp/tmp_ggze249/nucleo-g071rb/modm-test/src/modm-test/mock/iodevice.hpp>

Inheritance diagram for modm_test::platform::IODevice:
modm::IODevice

Public Member Functions

virtual void write (char c)
 Write a single char to the buffer.
 
virtual void flush ()
 
virtual bool read (char &)
 Reading is not implemented.
 
void clear ()
 Clear the buffer and reset counter.
 
virtual void write (const char *str)
 Write a C-string.
 

Public Attributes

char buffer [buffer_length]
 
size_t bytesWritten
 

Static Public Attributes

static constexpr std::size_t buffer_length = 100
 

Detailed Description

simple IODevice which stores all data in a memory buffer used for testing the output of an IOStream


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