Monero
Loading...
Searching...
No Matches
BasicOStreamWrapper< StreamType > Class Template Reference

Wrapper of std::basic_ostream into RapidJSON's Stream concept. More...

#include <ostreamwrapper.h>

Public Types

typedef StreamType::char_type Ch

Public Member Functions

 BasicOStreamWrapper (StreamType &stream)
void Put (Ch c)
void Flush ()
char Peek () const
char Take ()
size_t Tell () const
char * PutBegin ()
size_t PutEnd (char *)

Private Member Functions

 BasicOStreamWrapper (const BasicOStreamWrapper &)
BasicOStreamWrapperoperator= (const BasicOStreamWrapper &)

Private Attributes

StreamType & stream_

Detailed Description

template<typename StreamType>
class BasicOStreamWrapper< StreamType >

Wrapper of std::basic_ostream into RapidJSON's Stream concept.

The classes can be wrapped including but not limited to:

  • std::ostringstream
  • std::stringstream
  • std::wpstringstream
  • std::wstringstream
  • std::ifstream
  • std::fstream
  • std::wofstream
  • std::wfstream
Template Parameters
StreamTypeClass derived from std::basic_ostream.

Member Typedef Documentation

◆ Ch

template<typename StreamType>
typedef StreamType::char_type BasicOStreamWrapper< StreamType >::Ch

Constructor & Destructor Documentation

◆ BasicOStreamWrapper() [1/2]

template<typename StreamType>
BasicOStreamWrapper< StreamType >::BasicOStreamWrapper ( StreamType & stream)
inline

◆ BasicOStreamWrapper() [2/2]

template<typename StreamType>
BasicOStreamWrapper< StreamType >::BasicOStreamWrapper ( const BasicOStreamWrapper< StreamType > & )
private

Member Function Documentation

◆ Flush()

template<typename StreamType>
void BasicOStreamWrapper< StreamType >::Flush ( )
inline

◆ operator=()

template<typename StreamType>
BasicOStreamWrapper & BasicOStreamWrapper< StreamType >::operator= ( const BasicOStreamWrapper< StreamType > & )
private

◆ Peek()

template<typename StreamType>
char BasicOStreamWrapper< StreamType >::Peek ( ) const
inline

◆ Put()

template<typename StreamType>
void BasicOStreamWrapper< StreamType >::Put ( Ch c)
inline

◆ PutBegin()

template<typename StreamType>
char * BasicOStreamWrapper< StreamType >::PutBegin ( )
inline

◆ PutEnd()

template<typename StreamType>
size_t BasicOStreamWrapper< StreamType >::PutEnd ( char * )
inline

◆ Take()

template<typename StreamType>
char BasicOStreamWrapper< StreamType >::Take ( )
inline

◆ Tell()

template<typename StreamType>
size_t BasicOStreamWrapper< StreamType >::Tell ( ) const
inline

Member Data Documentation

◆ stream_

template<typename StreamType>
StreamType& BasicOStreamWrapper< StreamType >::stream_
private

The documentation for this class was generated from the following file: