libzypp  13.10.6
zypp::base::LogControl::TmpLineWriter Struct Reference

Exchange LineWriter for the lifetime of this object. More...

#include <LogControl.h>

Public Member Functions

template<class _LineWriter >
 TmpLineWriter (_LineWriter *_allocated_r)
 Convenience ctor taking over ownership of an allocated LineWriter. More...
 
 ~TmpLineWriter ()
 

Public Attributes

 __pad0__: _writer( LogControl::instance().getLineWriter() ) { LogControl::instance().setLineWriter( writer_r )
 

Private Attributes

shared_ptr< LineWriter_writer
 

Detailed Description

Exchange LineWriter for the lifetime of this object.

See Also
log::LineWriter

Definition at line 169 of file LogControl.h.

Constructor & Destructor Documentation

template<class _LineWriter >
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.

Member Data Documentation

zypp::base::LogControl::TmpLineWriter::__pad0__

Definition at line 173 of file LogControl.h.

shared_ptr<LineWriter> zypp::base::LogControl::TmpLineWriter::_writer
private

Definition at line 189 of file LogControl.h.


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