casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
casa::NullLogSink Class Reference

Throw away all messages. More...

#include <NullLogSink.h>

Inheritance diagram for casa::NullLogSink:
casa::LogSinkInterface

List of all members.

Public Member Functions

 NullLogSink ()
 NullLogSink (LogMessage::Priority filter)
 NullLogSink (const LogFilterInterface &filter)
 NullLogSink (const NullLogSink &other)
NullLogSinkoperator= (const NullLogSink &other)
 ~NullLogSink ()
virtual Bool postLocally (const LogMessage &message)
 Always throws the message away, but it does return True or False depending on whether or not message passes the filter.
String id () const
 Returns the id of the LogSink in use...

Static Public Member Functions

static String localId ()
 Returns the id for this class...

Detailed Description

Throw away all messages.

Intended use:

Internal

Review Status

Reviewed By:
wbrouw
Date Reviewed:
1996/08/21
Test programs:
tLogging
Demo programs:
dLogging

Prerequisite

Etymology

Null as in "empty" or "/dev/null".

Synopsis

NullLogSink is a trivial LogSinkInterface which merely throws away all its messages. It is not intended to be used directly, rather it should be used through LogSink .

Example

See (see (file="Logging.h"))Logging.h .

Motivation

For testing, or to prevent multiply logging (local and global) to cerr (say).

To Do

Definition at line 74 of file NullLogSink.h.


Constructor & Destructor Documentation

casa::NullLogSink::NullLogSink ( const LogFilterInterface filter) [explicit]

Member Function Documentation

String casa::NullLogSink::id ( ) const [virtual]

Returns the id of the LogSink in use...

Implements casa::LogSinkInterface.

static String casa::NullLogSink::localId ( ) [static]

Returns the id for this class...

Reimplemented from casa::LogSinkInterface.

NullLogSink& casa::NullLogSink::operator= ( const NullLogSink other)
virtual Bool casa::NullLogSink::postLocally ( const LogMessage message) [virtual]

Always throws the message away, but it does return True or False depending on whether or not message passes the filter.

Implements casa::LogSinkInterface.


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