IN2OSM  1.0.1
GenericStreamWrapper< InputStream, Encoding >

A Stream Wrapper. More...

#include <stream.h>

Inheritance diagram for GenericStreamWrapper< InputStream, Encoding >:
Inheritance graph
Collaboration diagram for GenericStreamWrapper< InputStream, Encoding >:
Collaboration graph

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

◆ Ch

typedef Encoding::Ch Ch

Definition at line 121 of file stream.h.

Constructor & Destructor Documentation

◆ GenericStreamWrapper()

GenericStreamWrapper ( InputStream &  is)
inline

Definition at line 122 of file stream.h.

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

Member Function Documentation

◆ Flush()

void Flush ( )
inline

Definition at line 129 of file stream.h.

129 { is_.Flush(); }
InputStream & is_
Definition: stream.h:140

◆ GetType()

UTFType GetType ( ) const
inline

Definition at line 136 of file stream.h.

136 { return is_.GetType(); }
InputStream & is_
Definition: stream.h:140

◆ HasBOM()

bool HasBOM ( ) const
inline

Definition at line 137 of file stream.h.

137 { return is_.HasBOM(); }
InputStream & is_
Definition: stream.h:140

◆ Peek()

Ch Peek ( ) const
inline

Definition at line 124 of file stream.h.

124 { return is_.Peek(); }
InputStream & is_
Definition: stream.h:140

◆ Peek4()

const Ch* Peek4 ( ) const
inline

Definition at line 133 of file stream.h.

133 { return is_.Peek4(); }
InputStream & is_
Definition: stream.h:140

◆ Put()

void Put ( Ch  ch)
inline

Definition at line 128 of file stream.h.

128 { is_.Put(ch); }
InputStream & is_
Definition: stream.h:140

◆ PutBegin()

Ch* PutBegin ( )
inline

Definition at line 127 of file stream.h.

127 { return is_.PutBegin(); }
InputStream & is_
Definition: stream.h:140

◆ PutEnd()

size_t PutEnd ( Ch ch)
inline

Definition at line 130 of file stream.h.

130 { return is_.PutEnd(ch); }
InputStream & is_
Definition: stream.h:140

◆ Take()

Ch Take ( )
inline

Definition at line 125 of file stream.h.

125 { return is_.Take(); }
InputStream & is_
Definition: stream.h:140

◆ Tell()

size_t Tell ( )
inline

Definition at line 126 of file stream.h.

126 { return is_.Tell(); }
InputStream & is_
Definition: stream.h:140

Member Data Documentation

◆ is_

InputStream& is_
protected

Definition at line 140 of file stream.h.


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