libzypp
10.5.0
|
Exchange LineWriter for the lifetime of this object. More...
#include <LogControl.h>
Public Member Functions | |
TmpLineWriter (const shared_ptr< LineWriter > &writer_r=shared_ptr< LineWriter >()) | |
template<class _LineWriter > | |
TmpLineWriter (_LineWriter *_allocated_r) | |
Convenience ctor taking over ownership of an allocated LineWriter. | |
~TmpLineWriter () | |
Private Attributes | |
shared_ptr< LineWriter > | _writer |
Exchange LineWriter for the lifetime of this object.
Definition at line 169 of file LogControl.h.
zypp::base::LogControl::TmpLineWriter::TmpLineWriter | ( | const shared_ptr< LineWriter > & | writer_r = shared_ptr<LineWriter>() | ) | [inline] |
Definition at line 171 of file LogControl.h.
zypp::base::LogControl::TmpLineWriter::TmpLineWriter | ( | _LineWriter * | _allocated_r | ) | [inline] |
Convenience ctor taking over ownership of an allocated LineWriter.
TmpLineWriter mylw( new log::StderrLineWriter );
Definition at line 181 of file LogControl.h.
zypp::base::LogControl::TmpLineWriter::~TmpLineWriter | ( | ) | [inline] |
Definition at line 185 of file LogControl.h.
shared_ptr<LineWriter> zypp::base::LogControl::TmpLineWriter::_writer [private] |
Definition at line 189 of file LogControl.h.