PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Public Member Functions | |
PrintStream (OutputStream< OutputType > *os) | |
PrintStream (OutputType *ot) | |
int | Format (const char *formatString,...) |
int | Format (const char *formatString, va_list list) |
Public Attributes | |
OutputStream< OutputType > * | os |
Definition at line 12 of file printstream.h.
int libpropeller::PrintStream< OutputType >::Format | ( | const char * | formatString, |
va_list | list | ||
) |
Same as Format, but with an explicit va_list.
Intended as a work around for the limitation that variac arguments cannot be passed directly. In most cases you will not need to use this function.
formatString | |
list |
Definition at line 78 of file printstream.h.
int libpropeller::PrintStream< OutputType >::Format | ( | const char * | formatString, |
... | |||
) |
Transmit a string (printf function-alike).
This function is based on the requirements found on this page: http://www.cplusplus.com/reference/cstdio/printf/
Formatters must follow the following prototype: %[flags][width]specifier The following flags are supported
Each specifier must have a matching typed optional argument.
Behavior is undefined if % is used without a specifier.
formatString | the string to send, optionally with specifiers. |
... | additional arguments. Depending on the formatString string, the function may expect a sequence of additional arguments. |
Definition at line 61 of file printstream.h.