PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Interface for all classes capable of printing. More...
#include <PropWare/hmi/output/printcapable.h>
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... | |
Interface for all classes capable of printing.
Definition at line 38 of file printcapable.h.
|
pure virtual |
Print a single character.
[in] | c | Individual 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.
|
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.
string[]
must be terminated with a null terminator[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.