SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
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 ()
 
Ch * PutBegin ()
 
void Put (Ch ch)
 
void Flush ()
 
size_t PutEnd (Ch *ch)
 
const Ch * Peek4 () 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