VR-Vantage 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
BasicIStreamWrapper< StreamType > Class Template Reference

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

Public Types

typedef StreamType::char_type Ch

Public Member Functions

 BasicIStreamWrapper (StreamType &stream)
Ch Peek () const
Ch Take ()
size_t Tell () const
ChPutBegin ()
void Put (Ch)
void Flush ()
size_t PutEnd (Ch *)
const ChPeek4 () const

Private Member Functions

 BasicIStreamWrapper (const BasicIStreamWrapper &)
BasicIStreamWrapperoperator= (const BasicIStreamWrapper &)

Private Attributes

StreamType & stream_
size_t count_
 Number of characters read. Note:
Ch peekBuffer_ [4]

Detailed Description

template<typename StreamType>
class BasicIStreamWrapper< StreamType >

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

The classes can be wrapped including but not limited to:

Template Parameters
StreamTypeClass derived from std::basic_istream.

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename StreamType >
Ch BasicIStreamWrapper< StreamType >::Peek ( ) const
inline
template<typename StreamType >
Ch BasicIStreamWrapper< StreamType >::Take ( )
inline
template<typename StreamType >
size_t BasicIStreamWrapper< StreamType >::Tell ( ) const
inline
template<typename StreamType >
Ch* BasicIStreamWrapper< StreamType >::PutBegin ( )
inline

References RAPIDJSON_ASSERT.

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

References RAPIDJSON_ASSERT.

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

References RAPIDJSON_ASSERT.

template<typename StreamType >
size_t BasicIStreamWrapper< StreamType >::PutEnd ( Ch )
inline

References RAPIDJSON_ASSERT.

template<typename StreamType >
const Ch* BasicIStreamWrapper< StreamType >::Peek4 ( ) const
inline
template<typename StreamType >
BasicIStreamWrapper& BasicIStreamWrapper< StreamType >::operator= ( const BasicIStreamWrapper< StreamType > &  )
private

Member Data Documentation

template<typename StreamType >
StreamType& BasicIStreamWrapper< StreamType >::stream_
private
template<typename StreamType >
size_t BasicIStreamWrapper< StreamType >::count_
private

Number of characters read. Note:

Referenced by BasicIStreamWrapper< StreamType >::Take(), and BasicIStreamWrapper< StreamType >::Tell().

template<typename StreamType >
Ch BasicIStreamWrapper< StreamType >::peekBuffer_[4]
mutableprivate

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


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)