WPILibC++
2019.1.1-beta-1-4-ga8aacd3
|
This is a helper class used for handling formatted output. More...
#include <Format.h>
Public Member Functions | |
format_object_base (const char *fmt) | |
unsigned | print (char *Buffer, unsigned BufferSize) const |
Format the object into the specified buffer. More... | |
Protected Member Functions | |
format_object_base (const format_object_base &)=default | |
virtual void | home () |
virtual int | snprint (char *Buffer, unsigned BufferSize) const =0 |
Call snprintf() for this object, on the given buffer and size. | |
Protected Attributes | |
const char * | Fmt |
This is a helper class used for handling formatted output.
It is the abstract base class of a templated derived class.
|
inline |
Format the object into the specified buffer.
On success, this returns the length of the formatted string. If the buffer is too small, this returns a length to retry with, which will be larger than BufferSize.