29 #ifndef CASA_LOGSINKINTERFACE_H
30 #define CASA_LOGSINKINTERFACE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Logging/LogFilterInterface.h>
LogSinkInterface(const LogSinkInterface &other)
Copy semantics - copy the filter from other to this
virtual const LogFilterInterface & filter() const
Get/set the filter.
virtual void cerrToo(bool cerr2)
Write to cerr too.
virtual LogSinkInterface & filter(const LogFilterInterface &filter)
virtual String getPriority(uInt i) const
LogFilterInterface * filter_p
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.
virtual void flush(Bool global=True)
Write any pending output.
LogSinkInterface()
Create with a NORMAL filter.
virtual Bool postLocally(const LogMessage &message)=0
This function must be over-ridden in derived classes.
virtual String getLocation(uInt i) const
LogSinkInterface(const LogFilterInterface &filter)
Create with the supplied filter.
virtual void writeLocally(Double time, const String &message, const String &priority, const String &location, const String &objectID)
Write a message (usually from another logsink) into the local one.
virtual String id() const =0
Returns the id of the LogSink in use...
virtual ~LogSinkInterface()
virtual String getObjectID(uInt i) const
virtual String getMessage(uInt i) const
void setTaskName(const String &theTask)
virtual uInt nelements() const
Get number of messages in sink.
LogSinkInterface & operator=(const LogSinkInterface &)
static String localId()
Returns the id for this class...
virtual void clearLocally()
Clear the local sink (i.e.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
TableExprNode time(const TableExprNode &node)
bool Bool
Define the standard types used by Casacore.