29 #ifndef CASA_MEMORYLOGSINK_H
30 #define CASA_MEMORYLOGSINK_H
Abstract base class for filtering LogMessages.
TableExprNode time(const TableExprNode &node)
Block< String > location_p
Block< String > priority_p
Accepts LogMessages and posts them to some destination.
MemoryLogSink()
Create an empty sink without a filter.
virtual uInt nelements() const
Get number of messages in sink.
virtual void clearLocally()
Clear the local sink (i.e.
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.
void resize(uInt nrnew)
Rezize the blocks to the given size, but at least 64 elements more than the current size...
bool Bool
Define the standard types used by Casacore.
virtual const LogFilterInterface & filter() const
Get/set the filter.
virtual String getObjectID(uInt i) const
virtual String getLocation(uInt i) const
virtual String getMessage(uInt i) const
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.
virtual Bool postLocally(const LogMessage &message)
If the message passes the filter, write it to memory.
static String localId()
Returns the id for this class...
Priority
An "importance" which is assigned to each LogMessage.
String id() const
Returns the id of the LogSink in use...
Save log messages in memory.
String: the storage and methods of handling collections of characters.
MemoryLogSink & operator=(const MemoryLogSink &other)
Assignment (copy semantics).
void copy_other(const MemoryLogSink &other)
Avoid duplicating code in copy ctor and assignment operator.
Informational log messages with with time, priority, and origin.
Block< String > objectID_p
Block< String > message_p
virtual String getPriority(uInt i) const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.