RF24Log  0.1.3
Unified logging library
FormatSpecifier.h
Go to the documentation of this file.
1 
16 #ifndef SRC_RF24LOGPARTS_FORMATSPECIFIER_H_
17 #define SRC_RF24LOGPARTS_FORMATSPECIFIER_H_
18 
19 #include <stdint.h>
20 
23 {
28  FormatSpecifier(char pad = ' ') : fill(pad), width(0), precis(-1), length(0), specifier(0) {};
29 
35  bool isFlagged(char c);
36 
42  bool isPaddPrec(char c);
43 
49  bool isFmtOption(char c);
50 
52  char fill;
54  uint16_t width;
56  int8_t precis;
63  uint8_t length;
65  char specifier;
66 };
67 
68 #endif /* SRC_RF24LOGPARTS_FORMATSPECIFIER_H_ */
Some data about a format specifier.
uint8_t length
bit-length of the data (only applies to integer numbers)
bool isPaddPrec(char c)
is a character a valid specifier padding/precision quantity
uint16_t width
The width of the padding.
char specifier
datatype specifier
bool isFlagged(char c)
is a character a valid specifier flag
bool isFmtOption(char c)
is a character a valid/supported specifier format option
int8_t precis
The number of decimal places. If negative, then default of 2 places is used.
char fill
The default character used as padding.
FormatSpecifier(char pad=' ')
Construct a new Specifier Flags object.