Easyuino  1.2.0
Easyuino::Printable Class Referenceabstract

Provides an interface interface to write objects to a Stream. More...

#include <Printable.h>

Inheritance diagram for Easyuino::Printable:
Easyuino::DistanceMeterPrintable Easyuino::RelayNamed

Public Member Functions

virtual char * toString () const =0
 Used to return a string representation of the object state. More...
 

Friends

Stream & operator<< (IN Stream &stream, IN const Printable &printable)
 Write the object state string representation to a given stream (e.g: Used to print the obejct state to the Serial monitor)
 

Detailed Description

Provides an interface interface to write objects to a Stream.

Useful for debug the current state of the device.

Member Function Documentation

◆ toString()

virtual char* Easyuino::Printable::toString ( ) const
pure virtual

Used to return a string representation of the object state.

IMPORTANT: It is mandatory to free the returned pointer in order to have no memory leaks.

Implemented in Easyuino::RelayNamed, and Easyuino::DistanceMeterPrintable.


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