Public Member Functions | Protected Types | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
gnsstk::BasicStreamBuf< ch, tr > Class Template Reference

Detailed Description

template<typename ch, typename tr>
class gnsstk::BasicStreamBuf< ch, tr >

This class easy implement the custom streambufs.

Definition at line 55 of file StreamBuf.hpp.

#include <StreamBuf.hpp>

Inheritance diagram for gnsstk::BasicStreamBuf< ch, tr >:
Inheritance graph
[legend]

Public Member Functions

 BasicStreamBuf ()
 
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)
 
 ~BasicStreamBuf ()
 

Protected Types

typedef std::basic_streambuf< ch, tr > Base
 
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

 BasicStreamBuf (const BasicStreamBuf &)
 
BasicStreamBufoperator= (const BasicStreamBuf &)
 
virtual int_type readFromDevice ()
 
virtual int_type writeToDevice (char_type)
 

Private Attributes

bool _ispb
 
int_type _pb
 

Member Typedef Documentation

◆ Base

template<typename ch , typename tr >
typedef std::basic_streambuf<ch, tr> gnsstk::BasicStreamBuf< ch, tr >::Base
protected

Definition at line 58 of file StreamBuf.hpp.

◆ char_traits

template<typename ch , typename tr >
typedef tr gnsstk::BasicStreamBuf< ch, tr >::char_traits
protected

Definition at line 61 of file StreamBuf.hpp.

◆ char_type

template<typename ch , typename tr >
typedef ch gnsstk::BasicStreamBuf< ch, tr >::char_type
protected

Definition at line 60 of file StreamBuf.hpp.

◆ int_type

template<typename ch , typename tr >
typedef Base::int_type gnsstk::BasicStreamBuf< ch, tr >::int_type
protected

Definition at line 62 of file StreamBuf.hpp.

◆ IOS

template<typename ch , typename tr >
typedef std::basic_ios<ch, tr> gnsstk::BasicStreamBuf< ch, tr >::IOS
protected

Definition at line 59 of file StreamBuf.hpp.

◆ off_type

template<typename ch , typename tr >
typedef Base::off_type gnsstk::BasicStreamBuf< ch, tr >::off_type
protected

Definition at line 64 of file StreamBuf.hpp.

◆ openmode

template<typename ch , typename tr >
typedef IOS::openmode gnsstk::BasicStreamBuf< ch, tr >::openmode
protected

Definition at line 65 of file StreamBuf.hpp.

◆ pos_type

template<typename ch , typename tr >
typedef Base::pos_type gnsstk::BasicStreamBuf< ch, tr >::pos_type
protected

Definition at line 63 of file StreamBuf.hpp.

Constructor & Destructor Documentation

◆ BasicStreamBuf() [1/2]

template<typename ch , typename tr >
gnsstk::BasicStreamBuf< ch, tr >::BasicStreamBuf ( )
inline

Definition at line 68 of file StreamBuf.hpp.

◆ ~BasicStreamBuf()

template<typename ch , typename tr >
gnsstk::BasicStreamBuf< ch, tr >::~BasicStreamBuf ( )
inline

Definition at line 74 of file StreamBuf.hpp.

◆ BasicStreamBuf() [2/2]

template<typename ch , typename tr >
gnsstk::BasicStreamBuf< ch, tr >::BasicStreamBuf ( const BasicStreamBuf< ch, tr > &  )
private

Member Function Documentation

◆ charToInt()

template<typename ch , typename tr >
static int_type gnsstk::BasicStreamBuf< ch, tr >::charToInt ( char_type  c)
inlinestaticprotected

Definition at line 151 of file StreamBuf.hpp.

◆ operator=()

template<typename ch , typename tr >
BasicStreamBuf& gnsstk::BasicStreamBuf< ch, tr >::operator= ( const BasicStreamBuf< ch, tr > &  )
private

◆ overflow()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::overflow ( int_type  c)
inlinevirtual

Definition at line 78 of file StreamBuf.hpp.

◆ pbackfail()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::pbackfail ( int_type  c)
inlinevirtual

Definition at line 122 of file StreamBuf.hpp.

◆ readFromDevice()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::readFromDevice ( )
inlineprivatevirtual

Definition at line 157 of file StreamBuf.hpp.

◆ uflow()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::uflow ( )
inlinevirtual

Definition at line 104 of file StreamBuf.hpp.

◆ underflow()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::underflow ( )
inlinevirtual

Definition at line 86 of file StreamBuf.hpp.

◆ writeToDevice()

template<typename ch , typename tr >
virtual int_type gnsstk::BasicStreamBuf< ch, tr >::writeToDevice ( char_type  )
inlineprivatevirtual

Definition at line 162 of file StreamBuf.hpp.

◆ xsgetn()

template<typename ch , typename tr >
virtual std::streamsize gnsstk::BasicStreamBuf< ch, tr >::xsgetn ( char_type p,
std::streamsize  count 
)
inlinevirtual

Definition at line 136 of file StreamBuf.hpp.

Member Data Documentation

◆ _ispb

template<typename ch , typename tr >
bool gnsstk::BasicStreamBuf< ch, tr >::_ispb
private

Definition at line 168 of file StreamBuf.hpp.

◆ _pb

template<typename ch , typename tr >
int_type gnsstk::BasicStreamBuf< ch, tr >::_pb
private

Definition at line 167 of file StreamBuf.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44