PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Public Member Functions | List of all members
PropWare::PrintCapable Class Referenceabstract

Interface for all classes capable of printing. More...

#include <PropWare/hmi/output/printcapable.h>

+ Inheritance diagram for PropWare::PrintCapable:

Public Member Functions

virtual void put_char (const char c)=0
 Print a single character. More...
 
virtual void puts (const char string[])=0
 Send a null-terminated character array. Though this method could be created using put_char, some objects (such as PropWare::UART), have optimized methods for sending a string and PrintCapable::puts can utilize them. More...
 

Detailed Description

Interface for all classes capable of printing.

Examples
Hybrid_Demo.cpp.

Definition at line 38 of file printcapable.h.

Member Function Documentation

◆ put_char()

virtual void PropWare::PrintCapable::put_char ( const char  c)
pure virtual

Print a single character.

Parameters
[in]cIndividual char to be printed

Implemented in PropWare::SPI, PropWare::HD44780, PropWare::UARTTX, PropWare::FullDuplexSerial, PropWare::Eeprom, PropWare::CharQueue, PropWare::StringBuilder, PropWare::FileWriter, PropWare::StaticStringBuilder, and SimplePrinter.

+ Here is the caller graph for this function:

◆ puts()

virtual void PropWare::PrintCapable::puts ( const char  string[])
pure virtual

Send a null-terminated character array. Though this method could be created using put_char, some objects (such as PropWare::UART), have optimized methods for sending a string and PrintCapable::puts can utilize them.

Precondition
string[] must be terminated with a null terminator
Parameters
[in]string[]Array of data words with the final word being 0 - the null terminator

Implemented in PropWare::SPI, PropWare::HD44780, PropWare::UARTTX, PropWare::FullDuplexSerial, PropWare::FileWriter, PropWare::StringBuilder, PropWare::StaticStringBuilder, and SimplePrinter.

+ Here is the caller graph for this function:

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