zypp::base::LogControl::TmpLineWriter Struct Reference

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

#include <LogControl.h>

List of all members.

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


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

zypp::base::LogControl::TmpLineWriter::TmpLineWriter ( const shared_ptr< LineWriter > &  writer_r = shared_ptr<LineWriter>()  )  [inline]

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.

References zypp::base::LogControl::instance(), and zypp::base::LogControl::setLineWriter().

zypp::base::LogControl::TmpLineWriter::~TmpLineWriter (  )  [inline]


Member Data Documentation

Definition at line 189 of file LogControl.h.

Referenced by ~TmpLineWriter().


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

doxygen