Public Types | Public Member Functions | Protected Attributes | List of all members
GenericStreamWrapper< InputStream, Encoding > Class Template Reference

A Stream Wrapper. More...

#include <stream.h>

Inheritance diagram for GenericStreamWrapper< InputStream, Encoding >:
Inheritance graph
[legend]

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

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

Protected Attributes

InputStream & is_
 

Detailed Description

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

A Stream Wrapper.

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

Note
implements Stream concept

Definition at line 126 of file stream.h.

Member Typedef Documentation

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

Definition at line 129 of file stream.h.

Constructor & Destructor Documentation

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

Definition at line 130 of file stream.h.

Member Function Documentation

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

Definition at line 154 of file stream.h.

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

Definition at line 170 of file stream.h.

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

Definition at line 174 of file stream.h.

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

Definition at line 134 of file stream.h.

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

Definition at line 164 of file stream.h.

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

Definition at line 150 of file stream.h.

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

Definition at line 146 of file stream.h.

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

Definition at line 158 of file stream.h.

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

Definition at line 138 of file stream.h.

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

Definition at line 142 of file stream.h.

Member Data Documentation

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

Definition at line 180 of file stream.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54