stk::basic_tee_streambuf< Ch, Tr > Class Template Reference

#include <TeeStreambuf.hpp>

List of all members.


Detailed Description

template<class Ch, class Tr = std::char_traits<Ch>>
class stk::basic_tee_streambuf< Ch, Tr >

Class basic_tee_streambuf maintains a list of destination output stream buffers to send written characters to.

Many destination output stream buffers may be added. For each character written to this stream buffer, the same character is written to each destination stream buffer.

Definition at line 28 of file TeeStreambuf.hpp.

Public Member Functions

 basic_tee_streambuf ()
 Creates a new basic_tee_streambuf instance.
 basic_tee_streambuf (std::basic_ostream< Ch, Tr > *os)
 Creates a new basic_tee_streambuf instance and adds the specified destination output stream buffer.
virtual ~basic_tee_streambuf ()
 Destroys a basic_tee_streambuf instance.
int eof ()
 Member function eof returns the current end-of-file status.
void add (std::ostream *os)
 Member function add adds the specified destination output stream buffer.
void remove (std::ostream *os)
 Member function remove removes the specified destination output stream buffer.
void clear ()
 Member function clear removes are destination output stream buffers.


Member Function Documentation

template<class Ch, class Tr = std::char_traits<Ch>>
int stk::basic_tee_streambuf< Ch, Tr >::eof (  )  [inline]

Member function eof returns the current end-of-file status.

Returns:
an int value of the current end-of-file status.

Definition at line 62 of file TeeStreambuf.hpp.

template<class Ch, class Tr = std::char_traits<Ch>>
void stk::basic_tee_streambuf< Ch, Tr >::add ( std::ostream *  os  )  [inline]

Member function add adds the specified destination output stream buffer.

Parameters:
sb a std::streambuf pointer to the output strema buffer to add.

Definition at line 72 of file TeeStreambuf.hpp.

template<class Ch, class Tr = std::char_traits<Ch>>
void stk::basic_tee_streambuf< Ch, Tr >::remove ( std::ostream *  os  )  [inline]

Member function remove removes the specified destination output stream buffer.

Parameters:
sb a std::streambuf pointer to the output strema buffer to remove.

Definition at line 83 of file TeeStreambuf.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Jul 13 09:27:33 2010 for Sierra Toolkit by  doxygen 1.4.7