|
IN2OSM
1.0.1
|
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... | |
| Ch | Peek () const |
| Ch | Take () |
| size_t | Tell () const |
| void | Put (Ch) |
| void | Flush () |
| Ch * | PutBegin () |
| size_t | PutEnd (Ch *) |
| const Ch * | Peek4 () const |
Private Member Functions | |
| BasicIStreamWrapper () | |
| BasicIStreamWrapper (const BasicIStreamWrapper &) | |
| BasicIStreamWrapper & | operator= (const BasicIStreamWrapper &) |
| void | Read () |
Private Attributes | |
| StreamType & | stream_ |
| Ch | peekBuffer_ [4] |
| Ch * | buffer_ |
| size_t | bufferSize_ |
| Ch * | bufferLast_ |
| Ch * | current_ |
| size_t | readCount_ |
| size_t | count_ |
| Number of characters read. More... | |
| bool | eof_ |
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 48 of file istreamwrapper.h.
| typedef StreamType::char_type Ch |
Definition at line 50 of file istreamwrapper.h.
|
inline |
Constructor.
| stream | stream opened for read. |
Definition at line 56 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 66 of file istreamwrapper.h.

|
private |

|
private |
|
inline |
Definition at line 77 of file istreamwrapper.h.
|
private |

|
inline |
Definition at line 71 of file istreamwrapper.h.
|
inline |
|
inline |
Definition at line 76 of file istreamwrapper.h.
|
inline |
Definition at line 78 of file istreamwrapper.h.
|
inline |
Definition at line 79 of file istreamwrapper.h.
|
inlineprivate |
|
inline |
|
inline |
Definition at line 73 of file istreamwrapper.h.
|
private |
Definition at line 109 of file istreamwrapper.h.
|
private |
Definition at line 111 of file istreamwrapper.h.
|
private |
Definition at line 110 of file istreamwrapper.h.
|
private |
Number of characters read.
Definition at line 114 of file istreamwrapper.h.
|
private |
Definition at line 112 of file istreamwrapper.h.
|
private |
Definition at line 115 of file istreamwrapper.h.
|
private |
Definition at line 109 of file istreamwrapper.h.
|
private |
Definition at line 113 of file istreamwrapper.h.
|
private |
Definition at line 108 of file istreamwrapper.h.