15#ifndef RAPIDJSON_CURSORSTREAMWRAPPER_H_
16#define RAPIDJSON_CURSORSTREAMWRAPPER_H_
22RAPIDJSON_DIAG_OFF(effc++)
25#if defined(_MSC_VER) && _MSC_VER <= 1800
27RAPIDJSON_DIAG_OFF(4702)
28RAPIDJSON_DIAG_OFF(4512)
38template <
typename InputStream,
typename Encoding = UTF8<> >
39class CursorStreamWrapper :
public GenericStreamWrapper<InputStream, Encoding> {
41 typedef typename Encoding::Ch Ch;
43 CursorStreamWrapper(InputStream& is):
44 GenericStreamWrapper<InputStream, Encoding>(is), line_(1), col_(0) {}
48 Ch ch = this->is_.Take();
68#if defined(_MSC_VER) && _MSC_VER <= 1800
size_t GetLine() const
Get the error line number, if error exists.
size_t GetColumn() const
Get the error column number, if error exists.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)