15 #ifndef CEREAL_RAPIDJSON_OSTREAMWRAPPER_H_
16 #define CEREAL_RAPIDJSON_OSTREAMWRAPPER_H_
22 CEREAL_RAPIDJSON_DIAG_PUSH
23 CEREAL_RAPIDJSON_DIAG_OFF(padded)
44 template <
typename StreamType>
47 typedef typename StreamType::char_type
Ch;
76 CEREAL_RAPIDJSON_DIAG_POP
#define CEREAL_RAPIDJSON_ASSERT(x)
Definition: json.hpp:50
Wrapper of std::basic_ostream into RapidJSON's Stream concept.
Definition: ostreamwrapper.h:45
BasicOStreamWrapper(StreamType &stream)
Definition: ostreamwrapper.h:48
void Flush()
Definition: ostreamwrapper.h:54
size_t PutEnd(char *)
Definition: ostreamwrapper.h:63
StreamType & stream_
Definition: ostreamwrapper.h:69
BasicOStreamWrapper(const BasicOStreamWrapper &)
char Take()
Definition: ostreamwrapper.h:60
char * PutBegin()
Definition: ostreamwrapper.h:62
size_t Tell() const
Definition: ostreamwrapper.h:61
BasicOStreamWrapper & operator=(const BasicOStreamWrapper &)
char Peek() const
Definition: ostreamwrapper.h:59
void Put(Ch c)
Definition: ostreamwrapper.h:50
StreamType::char_type Ch
Definition: ostreamwrapper.h:47
#define CEREAL_RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:121
#define CEREAL_RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:124
BasicOStreamWrapper< std::wostream > WOStreamWrapper
Definition: ostreamwrapper.h:73
BasicOStreamWrapper< std::ostream > OStreamWrapper
Definition: ostreamwrapper.h:72