Electroneum
Loading...
Searching...
No Matches
GenericStreamWrapper< InputStream, Encoding > Class Template Reference

A Stream Wrapper. More...

#include <stream.h>

Public Types

typedef Encoding::Ch Ch

Public Member Functions

 GenericStreamWrapper (InputStream &is)
Ch Peek () const
Ch Take ()
size_t Tell ()
ChPutBegin ()
void Put (Ch ch)
void Flush ()
size_t PutEnd (Ch *ch)
const ChPeek4 () const
UTFType GetType () const
bool HasBOM () const

Protected Attributes

InputStream & is_

Detailed Description

template<typename InputStream, typename Encoding = UTF8<>>
class GenericStreamWrapper< InputStream, Encoding >

A Stream Wrapper.

\tThis string stream is a wrapper for any stream by just forwarding any \treceived message to the origin stream.

Note
implements Stream concept

Definition at line 119 of file stream.h.

Member Typedef Documentation

◆ Ch

template<typename InputStream, typename Encoding = UTF8<>>
typedef Encoding::Ch GenericStreamWrapper< InputStream, Encoding >::Ch

Definition at line 121 of file stream.h.

Constructor & Destructor Documentation

◆ GenericStreamWrapper()

template<typename InputStream, typename Encoding = UTF8<>>
GenericStreamWrapper< InputStream, Encoding >::GenericStreamWrapper ( InputStream & is)
inline

Definition at line 122 of file stream.h.

122: is_(is) {}
A Stream Wrapper.
Definition stream.h:119
InputStream & is_
Definition stream.h:140

Member Function Documentation

◆ Flush()

template<typename InputStream, typename Encoding = UTF8<>>
void GenericStreamWrapper< InputStream, Encoding >::Flush ( )
inline

Definition at line 129 of file stream.h.

129{ is_.Flush(); }

◆ GetType()

template<typename InputStream, typename Encoding = UTF8<>>
UTFType GenericStreamWrapper< InputStream, Encoding >::GetType ( ) const
inline

Definition at line 136 of file stream.h.

136{ return is_.GetType(); }

◆ HasBOM()

template<typename InputStream, typename Encoding = UTF8<>>
bool GenericStreamWrapper< InputStream, Encoding >::HasBOM ( ) const
inline

Definition at line 137 of file stream.h.

137{ return is_.HasBOM(); }

◆ Peek()

template<typename InputStream, typename Encoding = UTF8<>>
Ch GenericStreamWrapper< InputStream, Encoding >::Peek ( ) const
inline

Definition at line 124 of file stream.h.

124{ return is_.Peek(); }

◆ Peek4()

template<typename InputStream, typename Encoding = UTF8<>>
const Ch * GenericStreamWrapper< InputStream, Encoding >::Peek4 ( ) const
inline

Definition at line 133 of file stream.h.

133{ return is_.Peek4(); }

◆ Put()

template<typename InputStream, typename Encoding = UTF8<>>
void GenericStreamWrapper< InputStream, Encoding >::Put ( Ch ch)
inline

Definition at line 128 of file stream.h.

128{ is_.Put(ch); }

◆ PutBegin()

template<typename InputStream, typename Encoding = UTF8<>>
Ch * GenericStreamWrapper< InputStream, Encoding >::PutBegin ( )
inline

Definition at line 127 of file stream.h.

127{ return is_.PutBegin(); }

◆ PutEnd()

template<typename InputStream, typename Encoding = UTF8<>>
size_t GenericStreamWrapper< InputStream, Encoding >::PutEnd ( Ch * ch)
inline

Definition at line 130 of file stream.h.

130{ return is_.PutEnd(ch); }

◆ Take()

template<typename InputStream, typename Encoding = UTF8<>>
Ch GenericStreamWrapper< InputStream, Encoding >::Take ( )
inline

Definition at line 125 of file stream.h.

125{ return is_.Take(); }

◆ Tell()

template<typename InputStream, typename Encoding = UTF8<>>
size_t GenericStreamWrapper< InputStream, Encoding >::Tell ( )
inline

Definition at line 126 of file stream.h.

126{ return is_.Tell(); }

Member Data Documentation

◆ is_

template<typename InputStream, typename Encoding = UTF8<>>
InputStream& GenericStreamWrapper< InputStream, Encoding >::is_
protected

Definition at line 140 of file stream.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/include/rapidjson/stream.h