Sierra Toolkit Version of the Day
stk::basic_tee_streambuf< Ch, Tr > Class Template Reference

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. More...

#include <TeeStreambuf.hpp>

List of all members.

Public Member Functions

 basic_tee_streambuf ()
 basic_tee_streambuf (std::basic_ostream< Ch, Tr > *os)
virtual ~basic_tee_streambuf ()
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.

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.


Constructor & Destructor Documentation

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

Creates a new basic_tee_streambuf instance.

Definition at line 38 of file TeeStreambuf.hpp.

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

Creates a new basic_tee_streambuf instance and adds the specified destination output stream buffer.

Definition at line 46 of file TeeStreambuf.hpp.

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

Destroys a basic_tee_streambuf instance.

Definition at line 54 of file TeeStreambuf.hpp.


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:
sba 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:
sba 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends