summaryrefslogtreecommitdiff
path: root/include/object
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-12 13:47:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-12 13:47:44 +0100
commitee720ed3bcc18fad43127d27e9d57781ecc91393 (patch)
tree1d392d5d5613bd6fa2d6b7572dc4c1744139605a /include/object
parent96462e6b5be917a5146eaae62234432f1030898f (diff)
prototest: json serialization
Diffstat (limited to 'include/object')
-rw-r--r--include/object/outputstream.h7
1 files changed, 7 insertions, 0 deletions
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 <stdint.h>
+#ifdef WITH_OSTREAM
+#include <ostream>
+#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);