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>
Priority
An "importance" which is assigned to each LogMessage.
virtual const LogFilterInterface & filter() const
Get/set the filter.
MemoryLogSink()
Create an empty sink without a filter.
Block< String > priority_p
virtual uInt nelements() const
Get number of messages in sink.
virtual String getMessage(uInt i) const
virtual String getObjectID(uInt i) const
virtual void clearLocally()
Clear the local sink (i.e.
MemoryLogSink(const LogFilterInterface &filter)
virtual String getLocation(uInt i) const
virtual String getPriority(uInt i) const
MemoryLogSink & operator=(const MemoryLogSink &other)
Assignment (copy semantics).
static String localId()
Returns the id for this class...
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.
Block< String > location_p
MemoryLogSink(LogMessage::Priority filter)
Create an empty sink with the given filter.
Block< String > message_p
Block< String > objectID_p
void resize(uInt nrnew)
Rezize the blocks to the given size, but at least 64 elements more than the current size.
MemoryLogSink(const MemoryLogSink &other)
Copy constructor (copy semantics).
String id() const
Returns the id of the LogSink in use...
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 copy_other(const MemoryLogSink &other)
Avoid duplicating code in copy ctor and assignment operator.
virtual Bool postLocally(const LogMessage &message)
If the message passes the filter, write it to memory.
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.