Wrapper of std::basic_istream into RapidJSON's Stream concept.
More...
#include <istreamwrapper.h>
Public Types | |
| typedef StreamType::char_type | Ch |
Public Member Functions | |
| BasicIStreamWrapper (StreamType &stream) | |
| Constructor. More... | |
| BasicIStreamWrapper (StreamType &stream, char *buffer, size_t bufferSize) | |
| Constructor. More... | |
| void | Flush () |
| Ch | Peek () const |
| const Ch * | Peek4 () const |
| void | Put (Ch) |
| Ch * | PutBegin () |
| size_t | PutEnd (Ch *) |
| Ch | Take () |
| size_t | Tell () const |
Private Member Functions | |
| BasicIStreamWrapper () | |
| BasicIStreamWrapper (const BasicIStreamWrapper &) | |
| BasicIStreamWrapper & | operator= (const BasicIStreamWrapper &) |
| void | Read () |
Private Attributes | |
| Ch * | buffer_ |
| Ch * | bufferLast_ |
| size_t | bufferSize_ |
| size_t | count_ |
| Number of characters read. More... | |
| Ch * | current_ |
| bool | eof_ |
| Ch | peekBuffer_ [4] |
| size_t | readCount_ |
| StreamType & | stream_ |
Wrapper of std::basic_istream into RapidJSON's Stream concept.
The classes can be wrapped including but not limited to:
std::istringstream std::stringstream std::wistringstream std::wstringstream std::ifstream std::fstream std::wifstream std::wfstream | StreamType | Class derived from std::basic_istream. |
Definition at line 49 of file istreamwrapper.h.
| typedef StreamType::char_type BasicIStreamWrapper< StreamType >::Ch |
Definition at line 52 of file istreamwrapper.h.
|
inline |
Constructor.
| stream | stream opened for read. |
Definition at line 58 of file istreamwrapper.h.
|
inline |
Constructor.
| stream | stream opened for read. |
| buffer | user-supplied buffer. |
| bufferSize | size of buffer in bytes. Must >=4 bytes. |
Definition at line 77 of file istreamwrapper.h.
|
private |
|
private |
|
inline |
Definition at line 111 of file istreamwrapper.h.
|
private |
|
inline |
Definition at line 91 of file istreamwrapper.h.
|
inline |
Definition at line 127 of file istreamwrapper.h.
|
inline |
Definition at line 107 of file istreamwrapper.h.
|
inline |
Definition at line 115 of file istreamwrapper.h.
|
inline |
Definition at line 120 of file istreamwrapper.h.
|
inlineprivate |
Definition at line 137 of file istreamwrapper.h.
|
inline |
Definition at line 95 of file istreamwrapper.h.
|
inline |
Definition at line 101 of file istreamwrapper.h.
|
private |
Definition at line 158 of file istreamwrapper.h.
|
private |
Definition at line 160 of file istreamwrapper.h.
|
private |
Definition at line 159 of file istreamwrapper.h.
|
private |
Number of characters read.
Definition at line 163 of file istreamwrapper.h.
|
private |
Definition at line 161 of file istreamwrapper.h.
|
private |
Definition at line 164 of file istreamwrapper.h.
|
private |
Definition at line 158 of file istreamwrapper.h.
|
private |
Definition at line 162 of file istreamwrapper.h.
|
private |
Definition at line 157 of file istreamwrapper.h.