rapidjson::BasicIStreamWrapper< StreamType > 模板类 参考

Wrapper of std::basic_istream into RapidJSON's Stream concept. 更多...

#include <istreamwrapper.h>

Public 类型

typedef StreamType::char_type Ch
 

Public 成员函数

 BasicIStreamWrapper (StreamType &stream)
 Constructor. 更多...
 
 BasicIStreamWrapper (StreamType &stream, char *buffer, size_t bufferSize)
 Constructor. 更多...
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
void Put (Ch)
 
void Flush ()
 
Ch * PutBegin ()
 
size_t PutEnd (Ch *)
 
const Ch * Peek4 () const
 

详细描述

template<typename StreamType>
class rapidjson::BasicIStreamWrapper< StreamType >

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
模板参数
StreamTypeClass derived from std::basic_istream.

构造及析构函数说明

◆ BasicIStreamWrapper() [1/2]

template<typename StreamType >
rapidjson::BasicIStreamWrapper< StreamType >::BasicIStreamWrapper ( StreamType &  stream)
inline

Constructor.

参数
streamstream opened for read.

◆ BasicIStreamWrapper() [2/2]

template<typename StreamType >
rapidjson::BasicIStreamWrapper< StreamType >::BasicIStreamWrapper ( StreamType &  stream,
char *  buffer,
size_t  bufferSize 
)
inline

Constructor.

参数
streamstream opened for read.
bufferuser-supplied buffer.
bufferSizesize of buffer in bytes. Must >=4 bytes.

该类的文档由以下文件生成: