casacore
Loading...
Searching...
No Matches
casacore::LogSink::LsiIntermediate Class Reference

LsiIntermediate is a helper class to allow LogSinkInterface to implement semantics that allow causing all classes accessing the log sink to be aimed at a different sink object. More...

Public Member Functions

 LsiIntermediate ()
 LsiIntermediate (LogSinkInterface *lsi)
 ~LsiIntermediate ()
LogSinkInterfaceoperator* ()
LogSinkInterfaceoperator-> ()
Bool operator! () const
void replace (LogSinkInterface *newLsi)

Private Member Functions

 LsiIntermediate (const LsiIntermediate &)
 Copy ctor and op= are private and not defined to prevent double-delete.
LsiIntermediateoperator= (const LsiIntermediate &)

Private Attributes

LogSinkInterfacelogSinkInterface_p

Detailed Description

LsiIntermediate is a helper class to allow LogSinkInterface to implement semantics that allow causing all classes accessing the log sink to be aimed at a different sink object.

This used to be done by using an odd "replace" method in std::shared_ptr; however, this is functionality is being removed to std::shared_ptr as it is modernized so this class was created to serve this narrow purpose.

Definition at line 270 of file LogSink.h.

Constructor & Destructor Documentation

◆ LsiIntermediate() [1/3]

casacore::LogSink::LsiIntermediate::LsiIntermediate ( )
inline

Definition at line 275 of file LogSink.h.

References logSinkInterface_p.

Referenced by LsiIntermediate(), and operator=().

◆ LsiIntermediate() [2/3]

casacore::LogSink::LsiIntermediate::LsiIntermediate ( LogSinkInterface * lsi)
inline

◆ ~LsiIntermediate()

casacore::LogSink::LsiIntermediate::~LsiIntermediate ( )
inline

Definition at line 277 of file LogSink.h.

References logSinkInterface_p.

◆ LsiIntermediate() [3/3]

casacore::LogSink::LsiIntermediate::LsiIntermediate ( const LsiIntermediate & )
private

Copy ctor and op= are private and not defined to prevent double-delete.

References LsiIntermediate().

Member Function Documentation

◆ operator!()

Bool casacore::LogSink::LsiIntermediate::operator! ( ) const
inline

Definition at line 281 of file LogSink.h.

References logSinkInterface_p.

◆ operator*()

LogSinkInterface & casacore::LogSink::LsiIntermediate::operator* ( )
inline

◆ operator->()

LogSinkInterface * casacore::LogSink::LsiIntermediate::operator-> ( )
inline

◆ operator=()

LsiIntermediate & casacore::LogSink::LsiIntermediate::operator= ( const LsiIntermediate & )
private

References LsiIntermediate().

◆ replace()

void casacore::LogSink::LsiIntermediate::replace ( LogSinkInterface * newLsi)
inline

Member Data Documentation

◆ logSinkInterface_p

LogSinkInterface* casacore::LogSink::LsiIntermediate::logSinkInterface_p
private

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