2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>
3 * Distributed under the terms of the MIT License.
9 #include "JsonEventListener.h"
17 class BJsonWriter
: public BJsonEventListener
{
20 virtual ~BJsonWriter();
22 void HandleError(status_t status
, int32 line
,
24 status_t
ErrorStatus();
26 status_t
WriteBoolean(bool value
);
28 status_t
WriteFalse();
31 status_t
WriteInteger(int64 value
);
32 status_t
WriteDouble(double value
);
34 status_t
WriteString(const char* value
);
36 status_t
WriteObjectStart();
37 status_t
WriteObjectName(const char* value
);
38 status_t
WriteObjectEnd();
40 status_t
WriteArrayStart();
41 status_t
WriteArrayEnd();
44 status_t fErrorStatus
;
48 } // namespace BPrivate
50 using BPrivate::BJsonWriter
;
52 #endif // _JSON_WRITER_H