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