Oncaphillis::niftyLib

niftyLib::IO::streambuf_device< CharT, TraitsT > Class Template Reference

#include <io/streambuf_device.h>

Inheritance diagram for niftyLib::IO::streambuf_device< CharT, TraitsT >:
Collaboration diagram for niftyLib::IO::streambuf_device< CharT, TraitsT >:

Detailed Description

template<class CharT, class TraitsT = std::char_traits<CharT>>
class niftyLib::IO::streambuf_device< CharT, TraitsT >

A device<CharT,TraitsT> subclass which may be plugged onto a basic_streambuf<Chart,TraitsT>.

Public Types

typedef super::char_type char_type
 Definition of the type of character transported by the device.
typedef super::traits_type traits_type
 These Traits define the characteristics of the character type transorted by this device.
typedef super::int_type int_type

Public Member Functions

 streambuf_device (std::basic_streambuf< char_type, traits_type > *sb)
virtual ~streambuf_device ()
virtual std::streamsize write (const char_type *b, std::streamsize n)
virtual std::streamsize read (char_type *b, std::streamsize n)

Member Typedef Documentation

template<class CharT, class TraitsT = std::char_traits<CharT>>
typedef super::char_type niftyLib::IO::streambuf_device< CharT, TraitsT >::char_type

Definition of the type of character transported by the device.

This public definitipn is expected to exist if one likes to associate the fd_device with a device_streambuf.

See also:
device_streambuf

Reimplemented from niftyLib::IO::device< CharT, TraitsT >.

template<class CharT, class TraitsT = std::char_traits<CharT>>
typedef super::traits_type niftyLib::IO::streambuf_device< CharT, TraitsT >::traits_type

These Traits define the characteristics of the character type transorted by this device.

As in std::basic_string it defaults to std::char_traits<CharT>.

This typedef is expected by device_streambuf in order to make the device associatable with the streambuf.

See also:
device_streambuf

Reimplemented from niftyLib::IO::device< CharT, TraitsT >.

template<class CharT, class TraitsT = std::char_traits<CharT>>
typedef super::int_type niftyLib::IO::streambuf_device< CharT, TraitsT >::int_type


Constructor & Destructor Documentation

template<class CharT, class TraitsT = std::char_traits<CharT>>
niftyLib::IO::streambuf_device< CharT, TraitsT >::streambuf_device ( std::basic_streambuf< char_type, traits_type > *  sb  )  [inline]

template<class CharT, class TraitsT = std::char_traits<CharT>>
virtual niftyLib::IO::streambuf_device< CharT, TraitsT >::~streambuf_device (  )  [inline, virtual]


Member Function Documentation

template<class CharT, class TraitsT = std::char_traits<CharT>>
virtual std::streamsize niftyLib::IO::streambuf_device< CharT, TraitsT >::write ( const char_type b,
std::streamsize  n 
) [inline, virtual]

template<class CharT, class TraitsT = std::char_traits<CharT>>
virtual std::streamsize niftyLib::IO::streambuf_device< CharT, TraitsT >::read ( char_type b,
std::streamsize  n 
) [inline, virtual]


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

Generated by  doxygen
© 2008; Dr. Sebastian Kloska ( Oncaphillis )
Powered by: [?]