From ee720ed3bcc18fad43127d27e9d57781ecc91393 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 12 Nov 2018 13:47:44 +0100 Subject: prototest: json serialization --- include/object/outputstream.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/object') diff --git a/include/object/outputstream.h b/include/object/outputstream.h index 70ebece..c6b503f 100644 --- a/include/object/outputstream.h +++ b/include/object/outputstream.h @@ -2,6 +2,9 @@ #define OUTPUTSTREAM_H #include +#ifdef WITH_OSTREAM +#include +#endif class OutputStream { private: @@ -39,6 +42,10 @@ class OutputStream { OutputStream & operator<<(double number); OutputStream & operator<<(OutputStream & (*fun) (OutputStream &)); +#ifdef WITH_OSTREAM + OutputStream & operator<<(std::string s); +#endif + void setBase(uint8_t b); void printf_uint8(uint8_t num); void printf_float(float num); -- cgit v1.2.3