9enum class PrinterType {
19 internal_custom_function,
22typedef std::function<void(FILE *,
bool, uint32_t)> printing_function;
26 const char *name, *description;
30 const char *not_truth;
33 printing_function custom_fn;
36 Printer(
const char *name,
const char *description, PrinterType type);
37 Printer(
const char *name,
const char *description, printing_function custom_fn);
38 Printer(
const char *name,
const char *description,
const char *not_truth,
const char *truth);
40 PrinterType get_type()
const;
43 void print(FILE *,
bool,
unsigned, T)
const;
47#define PRINTER(name, ...) {name, {name, __VA_ARGS__}}