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 54 of file istreamwrapper.h.
typedef StreamType::char_type BasicIStreamWrapper< StreamType >::Ch |
Definition at line 56 of file istreamwrapper.h.
|
inline |
Constructor.
stream | stream opened for read. |
Definition at line 62 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 80 of file istreamwrapper.h.
|
private |
|
private |
|
inline |
Definition at line 105 of file istreamwrapper.h.
|
private |
|
inline |
Definition at line 93 of file istreamwrapper.h.
|
inline |
Definition at line 116 of file istreamwrapper.h.
|
inline |
Definition at line 104 of file istreamwrapper.h.
|
inline |
Definition at line 106 of file istreamwrapper.h.
|
inline |
Definition at line 110 of file istreamwrapper.h.
|
inlineprivate |
Definition at line 125 of file istreamwrapper.h.
|
inline |
Definition at line 94 of file istreamwrapper.h.
|
inline |
Definition at line 99 of file istreamwrapper.h.
|
private |
Definition at line 143 of file istreamwrapper.h.
|
private |
Definition at line 145 of file istreamwrapper.h.
|
private |
Definition at line 144 of file istreamwrapper.h.
|
private |
Number of characters read.
Definition at line 148 of file istreamwrapper.h.
|
private |
Definition at line 146 of file istreamwrapper.h.
|
private |
Definition at line 149 of file istreamwrapper.h.
|
private |
Definition at line 143 of file istreamwrapper.h.
|
private |
Definition at line 147 of file istreamwrapper.h.
|
private |
Definition at line 142 of file istreamwrapper.h.