15#ifndef RAPIDJSON_OSTREAMWRAPPER_H_
16#define RAPIDJSON_OSTREAMWRAPPER_H_
23RAPIDJSON_DIAG_OFF(padded)
44template <
typename StreamType>
48 typedef typename StreamType::char_type
Ch;
51 void Put(
Ch c) { stream_.put(c); }
53 void Flush() { stream_.flush(); }
Wrapper of std::basic_ostream into RapidJSON's Stream concept.
Definition ostreamwrapper.h:46
BasicOStreamWrapper(StreamType &stream)
Definition ostreamwrapper.h:49
void Flush()
Definition ostreamwrapper.h:53
size_t PutEnd(char *)
Definition ostreamwrapper.h:76
char Take()
Definition ostreamwrapper.h:61
size_t Tell() const
Definition ostreamwrapper.h:66
char Peek() const
Definition ostreamwrapper.h:56
char * PutBegin()
Definition ostreamwrapper.h:71
void Put(Ch c)
Definition ostreamwrapper.h:51
StreamType::char_type Ch
Definition ostreamwrapper.h:48
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition rapidjson.h:451
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition rapidjson.h:121
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition rapidjson.h:124
BasicOStreamWrapper< std::wostream > WOStreamWrapper
Definition ostreamwrapper.h:90
BasicOStreamWrapper< std::ostream > OStreamWrapper
Definition ostreamwrapper.h:89