casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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. More...
 
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 CountedPtr; however, this is functionality is being removed to CountedPtr as it is modernized so this class was created to serve this narrow purpose.

Definition at line 275 of file LogSink.h.

Constructor & Destructor Documentation

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

Definition at line 280 of file LogSink.h.

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

Definition at line 281 of file LogSink.h.

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

Definition at line 282 of file LogSink.h.

References logSinkInterface_p.

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

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

Member Function Documentation

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

Definition at line 286 of file LogSink.h.

References logSinkInterface_p.

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

Definition at line 284 of file LogSink.h.

References logSinkInterface_p.

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

Definition at line 285 of file LogSink.h.

References logSinkInterface_p.

LsiIntermediate& casacore::LogSink::LsiIntermediate::operator= ( const LsiIntermediate )
private
void casacore::LogSink::LsiIntermediate::replace ( LogSinkInterface newLsi)
inline

Definition at line 288 of file LogSink.h.

References logSinkInterface_p.

Member Data Documentation

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

Definition at line 297 of file LogSink.h.

Referenced by operator!(), operator*(), operator->(), replace(), and ~LsiIntermediate().


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