cxxtools::BasicIOStream< CharT > Class Template Reference

An iostream with peeking capability. More...

#include <cxxtools/iostream.h>

Inheritance diagram for cxxtools::BasicIOStream< CharT >:
basic_iostream

Public Member Functions

 BasicIOStream (BasicStreamBuffer< CharT > *buffer=0)
 ~BasicIOStream ()
BasicStreamBuffer< CharT > * attachedBuffer ()
 Access to the underlying buffer.
BasicStreamBuffer< CharT > * attachBuffer (BasicStreamBuffer< CharT > *buffer)
std::streamsize peeksome (CharT *buffer, std::streamsize n)
 Peeks bytes in the stream buffer.
std::streamsize writesome (CharT *buffer, std::streamsize n)

Detailed Description

template<typename CharT>
class cxxtools::BasicIOStream< CharT >

An iostream with peeking capability.

Constructor & Destructor Documentation

template<typename CharT>
cxxtools::BasicIOStream< CharT >::BasicIOStream ( BasicStreamBuffer< CharT > *  buffer = 0)
inlineexplicit
template<typename CharT>
cxxtools::BasicIOStream< CharT >::~BasicIOStream ( )
inline

Member Function Documentation

template<typename CharT>
BasicStreamBuffer<CharT>* cxxtools::BasicIOStream< CharT >::attachBuffer ( BasicStreamBuffer< CharT > *  buffer)
inline
template<typename CharT>
BasicStreamBuffer<CharT>* cxxtools::BasicIOStream< CharT >::attachedBuffer ( )
inline

Access to the underlying buffer.

template<typename CharT>
std::streamsize cxxtools::BasicIOStream< CharT >::peeksome ( CharT *  buffer,
std::streamsize  n 
)
inline

Peeks bytes in the stream buffer.

The number of bytes that can be peeked depends on the current stream buffer get area and maybe less than requested, similar to istream::readsome().

template<typename CharT>
std::streamsize cxxtools::BasicIOStream< CharT >::writesome ( CharT *  buffer,
std::streamsize  n 
)
inline

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