26#include <ArmarXCore/interface/core/Log.h>
79 std::vector<LogMarker>
markers()
const;
86 bool isMarked(
const LogMessage& message)
const;
95 static bool sameLine(
const LogMessage& a,
const LogMessage& b);
97 mutable std::mutex mutex;
98 std::vector<LogMarker> entries;
100 std::size_t colorIndex = 0;
const LogMarker * markerForMessage(const LogMessage &message) const
Marker for a message identical to message, or nullptr.
void recolor(LogMarkerId id, const QColor &color)
Reassign a marker's color (no-op if unknown).
LogMarkerRegistry(QObject *parent=nullptr)
bool isMarked(const LogMessage &message) const
Whether any marker's snapshot is identical to message.
const LogMarker * add(const LogMessage &snapshot)
Pin the given message.
void clear()
Drop all markers.
std::vector< LogMarker > markers() const
Ordered (insertion-order) view of all markers.
void remove(LogMarkerId id)
Remove the marker with the given id (no-op if unknown).
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::uint64_t LogMarkerId
A single pinned log line: a snapshot of the message plus the color assigned to it.