Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::BasicUnbufferedStreamBuf< ch, tr > Class Template Reference

#include <UnbufferedStreamBuf.h>

Inheritance diagram for Poco::BasicUnbufferedStreamBuf< ch, tr >:
Collaboration diagram for Poco::BasicUnbufferedStreamBuf< ch, tr >:

List of all members.

Public Member Functions

virtual int_type overflow (int_type c)
virtual int_type pbackfail (int_type c)
virtual int_type uflow ()
virtual int_type underflow ()
virtual std::streamsize xsgetn (char_type *p, std::streamsize count)

Protected Types

typedef std::basic_streambuf
< ch, tr > 
typedef tr char_traits
typedef ch char_type
typedef Base::int_type int_type
typedef std::basic_ios< ch, tr > IOS
typedef Base::off_type off_type
typedef IOS::openmode openmode
typedef Base::pos_type pos_type

Static Protected Member Functions

static int_type charToInt (char_type c)

Private Member Functions

 BasicUnbufferedStreamBuf (const BasicUnbufferedStreamBuf &)
BasicUnbufferedStreamBufoperator= (const BasicUnbufferedStreamBuf &)
virtual int_type readFromDevice ()
virtual int_type writeToDevice (char_type)

Private Attributes

bool _ispb
int_type _pb

Detailed Description

template<typename ch, typename tr>
class Poco::BasicUnbufferedStreamBuf< ch, tr >

This is an implementation of an unbuffered streambuf that greatly simplifies the implementation of custom streambufs of various kinds. Derived classes only have to override the methods readFromDevice() or writeToDevice().

Definition at line 54 of file UnbufferedStreamBuf.h.

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

Generated by  Doxygen 1.6.0   Back to index