From 5378ffd0aca410c50887fee57899776e62bfb766 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Aug 2021 12:48:37 +0100 Subject: Extract WritePqCopyStrm into its own file --- lib/dbTypes.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'lib/dbTypes.h') diff --git a/lib/dbTypes.h b/lib/dbTypes.h index 0b7185c..42b242b 100644 --- a/lib/dbTypes.h +++ b/lib/dbTypes.h @@ -11,6 +11,38 @@ struct timespec; namespace MyGrate { + template struct printer; + template<> struct printer { + constexpr static const char * const fmt {"%f"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%f"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%hhd"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%hhu"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%hd"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%hu"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%d"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%u"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%ld"}; + }; + template<> struct printer { + constexpr static const char * const fmt {"%lu"}; + }; + struct Date { inline Date() { } inline Date(uint16_t y, uint8_t m, uint8_t d) : year {y}, month {m}, day {d} { } -- cgit v1.2.3