Printer.
More...
#include <printer.h>
|
| enum | { BufferSize = 1024
} |
| typedef void(* | PrintlnFunc) (const char *buf, size_t bufsz) |
| | Printing function.
|
|
| | Printer (PrintlnFunc println_func=NULL) |
| | Initialize printer. If println_func is NULL, prints text to console.
|
| | ~Printer () |
| | Flush and destroy.
|
| size_t | writef (const char *format,...) |
| | Write text.
|
Printer.
Definition at line 23 of file printer.h.
◆ PrintlnFunc
| typedef void(* roc::core::Printer::PrintlnFunc) (const char *buf, size_t bufsz) |
Printing function.
Definition at line 30 of file printer.h.
◆ anonymous enum
| Enumerator |
|---|
| BufferSize | Maximum buffer size.
|
Definition at line 25 of file printer.h.
◆ Printer()
| roc::core::Printer::Printer |
( |
PrintlnFunc | println_func = NULL | ) |
|
Initialize printer. If println_func is NULL, prints text to console.
◆ ~Printer()
| roc::core::Printer::~Printer |
( |
| ) |
|
◆ writef()
| size_t roc::core::Printer::writef |
( |
const char * | format, |
|
|
| ... ) |
Write text.
- Returns
- size of formatted string (excluding terminating zero byte).
The documentation for this class was generated from the following file: