Sierra Toolkit  Version of the Day
stk_classic::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>

Inherits basic_streambuf< Ch, Tr >.

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. More...
 
void add (std::ostream *os)
 Member function add adds the specified destination output stream buffer. More...
 
void remove (std::ostream *os)
 Member function remove removes the specified destination output stream buffer. More...
 
void clear ()
 Member function clear removes are destination output stream buffers.
 

Detailed Description

template<class Ch, class Tr = std::char_traits<Ch>>
class stk_classic::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 20 of file OutputLog.hpp.

Constructor & Destructor Documentation

◆ basic_tee_streambuf() [1/2]

template<class Ch , class Tr = std::char_traits<Ch>>
stk_classic::basic_tee_streambuf< Ch, Tr >::basic_tee_streambuf ( )
inline

Creates a new basic_tee_streambuf instance.

Definition at line 38 of file TeeStreambuf.hpp.

◆ basic_tee_streambuf() [2/2]

template<class Ch , class Tr = std::char_traits<Ch>>
stk_classic::basic_tee_streambuf< Ch, Tr >::basic_tee_streambuf ( std::basic_ostream< Ch, Tr > *  os)
inlineexplicit

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

Definition at line 46 of file TeeStreambuf.hpp.

◆ ~basic_tee_streambuf()

template<class Ch , class Tr = std::char_traits<Ch>>
virtual stk_classic::basic_tee_streambuf< Ch, Tr >::~basic_tee_streambuf ( )
inlinevirtual

Destroys a basic_tee_streambuf instance.

Definition at line 54 of file TeeStreambuf.hpp.

Member Function Documentation

◆ eof()

template<class Ch , class Tr = std::char_traits<Ch>>
int stk_classic::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.

◆ add()

template<class Ch , class Tr = std::char_traits<Ch>>
void stk_classic::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.

◆ remove()

template<class Ch , class Tr = std::char_traits<Ch>>
void stk_classic::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 files: