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 >:
CursorStreamWrapper< InputStream, Encoding >

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.

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

Note
implements Stream concept

Definition at line 119 of file stream.h.

Member Typedef Documentation

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

Definition at line 121 of file stream.h.

Constructor & Destructor Documentation

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

Definition at line 122 of file stream.h.

122 : is_(is) {}
InputStream & is_
Definition: stream.h:140

Member Function Documentation

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

Definition at line 129 of file stream.h.

129 { is_.Flush(); }
InputStream & is_
Definition: stream.h:140
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(); }
InputStream & is_
Definition: stream.h:140
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(); }
InputStream & is_
Definition: stream.h:140
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(); }
InputStream & is_
Definition: stream.h:140
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(); }
InputStream & is_
Definition: stream.h:140
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); }
InputStream & is_
Definition: stream.h:140
template<typename InputStream , typename Encoding = UTF8<>>
Ch* GenericStreamWrapper< InputStream, Encoding >::PutBegin ( )
inline

Definition at line 127 of file stream.h.

127 { return is_.PutBegin(); }
InputStream & is_
Definition: stream.h:140
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); }
InputStream & is_
Definition: stream.h:140
template<typename InputStream , typename Encoding = UTF8<>>
Ch GenericStreamWrapper< InputStream, Encoding >::Take ( )
inline

Definition at line 125 of file stream.h.

125 { return is_.Take(); }
InputStream & is_
Definition: stream.h:140
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(); }
InputStream & is_
Definition: stream.h:140

Member Data Documentation

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: