Formatting specification used by Plotter to render values and (optionally) a header. More...
#include <PlotterFormat.h>
Public Member Functions | |
| void | beginPlot (Print &out) const |
| void | endPlot (Print &out) const |
| void | beginRow (Print &out) const |
| void | endRow (Print &out) const |
| void | sep (Print &out) const |
| void | printValueElement (Print &out, uint16_t index, LabelView label, float value, uint8_t digits, bool isFirst) const |
| Print one element for a normal (value) row. | |
| void | printKeyElement (Print &out, uint16_t index, LabelView label, uint8_t digits, bool isFirst) const |
| Print one element for a header (key) row. | |
Static Public Member Functions | |
| static void | printString (Print &out, const char *str) |
Formatting specification used by Plotter to render values and (optionally) a header.
This is intentionally minimal:
Template mini-language:
Escaping:
Unknown $-tokens are printed literally (e.g., "$q" prints "$q").
| void pq::PlotterFormat::printKeyElement | ( | Print & | out, |
| uint16_t | index, | ||
| LabelView | label, | ||
| uint8_t | digits, | ||
| bool | isFirst | ||
| ) | const |
Print one element for a header (key) row.
Typically Plotter will call this only when labels exist, but this function also applies keyFallback if label is missing for the index.
| void pq::PlotterFormat::printValueElement | ( | Print & | out, |
| uint16_t | index, | ||
| LabelView | label, | ||
| float | value, | ||
| uint8_t | digits, | ||
| bool | isFirst | ||
| ) | const |
Print one element for a normal (value) row.
| out | Output device |
| index | Element index (0-based) |
| label | Label for this index (may be empty) |
| value | Value for this element |
| digits | Digits after decimal point (Arduino Print convention) |
| isFirst | Whether this is the first element in the row |